Changeset 79024


Ignore:
Timestamp:
Jun 20, 2012, 9:49:42 PM (6 years ago)
Author:
Daniel James
Message:

Website: Merge library list fix from beta.

Location:
website/public_html/live
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • website/public_html/live

  • website/public_html/live/doc/libraries.php

    r76878 r79024  
    2525    if (isset($_SERVER["PATH_INFO"]))
    2626    {
     27        // PATH_INFO is set for redirects from a versioned URL.
     28
    2729        $vinfo = array();
    2830        preg_match('@([0-9]+)_([0-9]+)_([0-9]+)@',$_SERVER["PATH_INFO"],$vinfo);
     
    4143    else
    4244    {
    43         return TRUE;
     45        // PATH_INFO isn't set, so viewing the plain libraries
     46        // page. Only display current libraries.
     47
     48        global $boost_current_version;
     49        return
     50            ($v < $boost_current_version[0]) ||
     51            ($v == $boost_current_version[0] &&
     52                $r < $boost_current_version[1]) ||
     53            ($v == $boost_current_version[0] &&
     54                $r == $boost_current_version[1] &&
     55                $p <= $boost_current_version[2]);
     56        return FALSE;
    4457    }
    4558}
Note: See TracChangeset for help on using the changeset viewer.