[Xfce4-commits] <wiki:master> Add fallback for old xfce4-panel url.

Nick Schermer noreply at xfce.org
Fri Jan 6 22:20:01 CET 2012


Updating branch refs/heads/master
         to 440d356bf4f59d7c5527183ac1f55c7d8d07904a (commit)
       from 8785f1daf0332f28c443f3c7c1c426ebaccd9874 (commit)

commit 440d356bf4f59d7c5527183ac1f55c7d8d07904a
Author: Nick Schermer <nick at xfce.org>
Date:   Fri Jan 6 22:19:45 2012 +0100

    Add fallback for old xfce4-panel url.

 help.php |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/help.php b/help.php
index 010a066..47e5b6e 100644
--- a/help.php
+++ b/help.php
@@ -25,11 +25,19 @@ $component = get_value ('component');
 $page = get_value ('page', $defpage);
 $offset = get_value ('offset');
 
+/* Fallback for xfce4-panel */
+if (empty ($component))
+    $component = get_value ('package');
+if (empty ($locale))
+    $locale = get_value ('lang');
+if (empty ($offset))
+    $offset = get_value ('anchor');
+
 /* Start uri */
 $uri = '';
 
 /* Find component */
-if ($component != null)
+if (!empty ($component))
 {
     foreach ($subdirs as $subdir)
     {


More information about the Xfce4-commits mailing list