cvs: pearweb /public_html packages.php
| From: | Ant�nio Carlos Ven�ncio J�nior | Date: | Wed, 24 Jul 2002 01:04:23 +0000 |
| Subject: | cvs: pearweb /public_html packages.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-5313@lists.php.net to get a copy of this message | ||
floripa Tue Jul 23 21:04:23 2002 EDT
Modified files:
/pearweb/public_html packages.php
Log:
don't show the top level link if the user is already at the top level
Index: pearweb/public_html/packages.php
diff -u pearweb/public_html/packages.php:1.28 pearweb/public_html/packages.php:1.29
--- pearweb/public_html/packages.php:1.28 Sun Jun 9 18:49:00 2002
+++ pearweb/public_html/packages.php Tue Jul 23 21:04:23 2002
@@ -15,7 +15,7 @@
+----------------------------------------------------------------------+
| Authors: |
+----------------------------------------------------------------------+
- $Id: packages.php,v 1.28 2002/06/09 22:49:00 richard Exp $
+ $Id: packages.php,v 1.29 2002/07/24 01:04:23 floripa Exp $
*/
/**
@@ -59,7 +59,12 @@
$category_title = "Package Browser :: " . htmlspecialchars($catname);
-$showempty_link = '<a
href="'.$_SERVER['PHP_SELF'].getQueryString($catpid, $catname,
!$showempty).'">'.($showempty ? 'Hide empty' : 'Show
empty').'</a>';
+// the user is already at the top level
+if (empty($catpid)) {
+ $showempty_link = 'Top Level';
+} else {
+ $showempty_link = '<a
href="'.$_SERVER['PHP_SELF'].getQueryString($catpid, $catname,
!$showempty).'">'.($showempty ? 'Hide empty' : 'Show
empty').'</a>';
+}
/**
* Main part of script