title: Override get_config (Codeigniter)
body: <p>I am upgrading my Codeigniter from 2.2.1 to 3.0.0. A lot of things has been changed espacially sessions.</p>
  
  <p>CI 2.2.1 and before had this function as follow in system/core/Common.php: Line around 214.</p>
  
  <pre><code>   function &amp;get_config($replace = array())
       {
          static $_config;
  
          if (isset($_config))
      {
          return $_config[0];
      }
  </code></pre>
  
  <p>This is the function that extends system/core/Input.php</p>
  
  <p>application/core/MY_Input.php</p>
  
  <pre><code>    Class MY_Input extends CI_Input
      {
  
       function _clean_input_keys($str, $fatal = true)
       {
  
      $config = &amp;get_config('config');
  
      if ( ! preg_match("/^[".$config['permitted_uri_chars']."]+$/i", 
         rawurlencode($str)))
      {
          exit('Disallowed Key Characters.');
      }
  
      // Clean UTF-8 if supported
      if (UTF8_ENABLED === TRUE)
      {
          $str = $this-&gt;uni-&gt;clean_string($str);
      }
  
  
      return $str;
      }
  
      }
  </code></pre>
  
  <p>Until here everything worked fine. After upgrading to CI# system/core/Common.php has changed the function to: Line around 238</p>
  
  <pre><code>    function &amp;get_config(Array $replace = array())
        {
        static $config;
  
        if (empty($config))
        {
  </code></pre>
  
  <p>How could I match the param for this function in MY_Input.php</p>
  
  <pre><code>  $config = &amp;get_config('config');
  </code></pre>