Changeset 464 for trunk/lib/Navigation.inc.php
- Timestamp:
- Feb 8, 2014 2:29:30 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Navigation.inc.php
r461 r464 279 279 * @return mixed The value set for $return, TRUE by default. 280 280 */ 281 function currentPage($test_uri, $true_return=true, $false_return=false, $include_query=true) 282 { 283 $actual_uri = $include_query ? $_SERVER['REQUEST_URI'] : strtok($_SERVER['REQUEST_URI'], '?'); 281 function currentPage($test_uri, $true_return=true, $false_return=false, $strip_query=false) 282 { 283 $actual_uri = $strip_query ? strtok($_SERVER['REQUEST_URI'], '?') : $_SERVER['REQUEST_URI']; 284 $test_uri = $strip_query ? strtok($test_uri, '?') : $test_uri; 284 285 if (preg_match('/^' . preg_quote(urldecode($test_uri), '/') . '$/i', $actual_uri)) { 285 286 return $true_return;
Note: See TracChangeset
for help on using the changeset viewer.