Ignore:
Timestamp:
Feb 8, 2014 2:29:30 AM (10 years ago)
Author:
anonymous
Message:

Added jsDump function. Updated Navigation::currentPage so test url and curr url both have the option to exclude the query string.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Navigation.inc.php

    r461 r464  
    279279     * @return  mixed   The value set for $return, TRUE by default.
    280280     */
    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;
    284285        if (preg_match('/^' . preg_quote(urldecode($test_uri), '/') . '$/i', $actual_uri)) {
    285286            return $true_return;
Note: See TracChangeset for help on using the changeset viewer.