title: Strict Standards: Non-static method spController::getLang() should not be called statically
body: <p>I have this function:</p>
  
  <pre><code>&lt;?PHP
  function T($w) {
      $method = $GLOBALS['G_SP']["lang"][spController::getLang()]; // LINE 2
      if(!isset($method) || 'default' == $method){
          return $w;
      }elseif( function_exists($method) ){
          return ( $tmp = call_user_func($method, $w) ) ? $tmp : $w;
      }elseif( is_array($method) ){
          return ( $tmp = spClass($method[0])-&gt;{$method[1]}($w) ) ? $tmp : $w;
      }elseif( file_exists($method) ){
          $dict = require($method);
          return isset($dict[$w]) ? $dict[$w] : $w;
      }else{
          return $w;
      }
  }
  ?&gt;
  </code></pre>
  
  <p>no i see this error in line 2:</p>
  
  <blockquote>
    <p>Strict Standards: Non-static method spController::getLang() should not
    be called statically in C:\xampp\htdocs\inc\spFunctions.php on line 2</p>
  </blockquote>
  
  <p>how to fix this error?</p>
  
  <p><strong>NOTE</strong> : i need to fix this without change php.ini (disable error_reporting = E_ALL | E_STRICT OR display_errors = On to Off)</p>