Changeset 1552

Show
Ignore:
Timestamp:
12/16/2007 01:42:36 PM (13 months ago)
Author:
Shadowhand
Message:

Adding a parameter to url::current, to allow fetching the current query string with the URI.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/helpers/url.php

    r1522 r1552  
    7979         *  The current URI string. 
    8080         */ 
    81         public static function current() 
     81        public static function current($qs = FALSE) 
    8282        { 
    83                 return Router::$current_uri; 
     83                return Router::$current_uri.($qs === TRUE ? Router::$query_string : ''); 
    8484        } 
    8585