Show
Ignore:
Timestamp:
07/28/2008 01:19:16 PM (4 months ago)
Author:
Shadowhand
Message:

Allowing $_GET to be used with ?kohana/uri routing, thanks Isaiah!

Files:
1 modified

Legend:

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

    r3168 r3226  
    197197                        self::$current_uri = key($_GET); 
    198198 
     199                        // Remove the URI from $_GET 
     200                        unset($_GET[self::$current_uri]); 
     201 
    199202                        // Fixes really strange handling of a suffix in a GET string 
    200203                        if ($suffix = Kohana::config('core.url_suffix') AND substr(self::$current_uri, -(strlen($suffix))) === '_'.substr($suffix, 1)) 
     
    202205                                self::$current_uri = substr(self::$current_uri, 0, -(strlen($suffix))); 
    203206                        } 
    204  
    205                         // Destroy GET 
    206                         $_GET = array(); 
    207                         $_SERVER['QUERY_STRING'] = ''; 
    208207                } 
    209208                elseif (isset($_SERVER['PATH_INFO']) AND $_SERVER['PATH_INFO'])