Show
Ignore:
Timestamp:
09/28/2007 06:19:02 PM (14 months ago)
Author:
Shadowhand
Message:

Updates URI and Router. Use Router::$query_string() to fetch the query string. This is only available after the controller has been initialized.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/Router.php

    r600 r609  
    99        public static $segments    = array(); 
    1010        public static $rsegments   = array(); 
     11 
     12        public static $query_string = ''; 
    1113 
    1214        public static $directory  = FALSE; 
     
    5759                                self::$segments = substr(self::$segments, 0, -(strlen($suffix))); 
    5860                        } 
     61 
     62                        // Destroy GET 
     63                        $_GET = array(); 
    5964                } 
    6065                elseif (isset($_SERVER['PATH_INFO']) AND $_SERVER['PATH_INFO']) 
     
    228233                } 
    229234 
    230                 if (self::$controller != TRUE) 
     235                if (empty(self::$controller)) 
    231236                { 
    232237                        Kohana::show_404();