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

commit 440d356bf4f59d7c5527183ac1f55c7d8d07904a
Author: Nick Schermer <n...@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)
     {
_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to