Show
Ignore:
Timestamp:
06/02/2008 11:14:48 AM (6 months ago)
Author:
Shadowhand
Message:

Added Router::$complete_uri, to prevent constant uri.qs concatenation

Files:
1 modified

Legend:

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

    r2629 r2737  
    1414        protected static $routes = array(); 
    1515 
    16         public static $current_uri = ''; 
     16        public static $current_uri  = ''; 
     17        public static $query_string = ''; 
     18        public static $complete_uri = ''; 
     19        public static $url_suffix   = ''; 
     20 
    1721        public static $segments    = array(); 
    1822        public static $rsegments   = array(); 
    19  
    20         public static $query_string = ''; 
    21         public static $url_suffix   = ''; 
    2223 
    2324        public static $directory       = FALSE; 
     
    6465                // At this point segments, rsegments, and current URI are all the same 
    6566                self::$segments = self::$rsegments = self::$current_uri = trim(self::$current_uri, '/'); 
     67 
     68                // Set the complete URI 
     69                self::$complete_uri = self::$query_string.self::$current_uri; 
    6670 
    6771                // Explode the segments by slashes