[Xfce4-commits] <wiki:master> Support versions in docs.

Nick Schermer noreply at xfce.org
Sun Feb 16 22:48:01 CET 2014


Updating branch refs/heads/master
         to 4d2f0a6d6ef6ec80149d22eb022384181ca601ea (commit)
       from eb9b4885a974398cd0f517f3bfb7f6a9fb86d23f (commit)

commit 4d2f0a6d6ef6ec80149d22eb022384181ca601ea
Author: Nick Schermer <nick at xfce.org>
Date:   Sun Feb 16 22:47:37 2014 +0100

    Support versions in docs.

 help.php |   10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/help.php b/help.php
index 47e5b6e..2e79a31 100644
--- a/help.php
+++ b/help.php
@@ -19,7 +19,7 @@ if (!is_dir ($root) || !chdir (($root)))
     die ('Pages path is not properly configured');
 
 /* Get information about from the uri */
-//$version = get_value ('version');
+$version = get_value ('version');
 $locale = get_value ('locale');
 $component = get_value ('component');
 $page = get_value ('page', $defpage);
@@ -42,7 +42,13 @@ if (!empty ($component))
     foreach ($subdirs as $subdir)
     {
         $path = $subdir.'/'.$component.'/';
-        if (is_dir ($path))
+        $version_path = $path.$version.'/';
+        if (is_dir ($version_path))
+        {
+            $uri = $version_path;
+            break;
+        }
+        elseif (is_dir ($path))
         {
             $uri = $path;
             break;


More information about the Xfce4-commits mailing list