cvs: pearweb /include pear-format-html.php
| From: | Daniel O'Connor | Date: | Sat, 16 May 2009 16:06:57 +0000 |
| Subject: | cvs: pearweb /include pear-format-html.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-8410@lists.php.net to get a copy of this message | ||
clockwerx Sat May 16 16:06:57 2009 UTC
Modified files:
/pearweb/include pear-format-html.php
Log:
Usability: For developers, put 'new package' and 'upload release' links in the
Packages section
http://cvs.php.net/viewvc.cgi/pearweb/include/pear-format-html.php?r1=1.281&r2=1.282&diff_format=u
Index: pearweb/include/pear-format-html.php
diff -u pearweb/include/pear-format-html.php:1.281 pearweb/include/pear-format-html.php:1.282
--- pearweb/include/pear-format-html.php:1.281 Fri May 8 04:21:53 2009
+++ pearweb/include/pear-format-html.php Sat May 16 16:06:56 2009
@@ -15,7 +15,7 @@
+----------------------------------------------------------------------+
| Authors: |
+----------------------------------------------------------------------+
- $Id: pear-format-html.php,v 1.281 2009/05/08 04:21:53 clockwerx Exp $
+ $Id: pear-format-html.php,v 1.282 2009/05/16 16:06:56 clockwerx Exp $
*/
PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'error_handler');
@@ -340,6 +340,10 @@
$main_order[4] = '/packages.php';
$main['/packages.php'] = 'Packages';
$sub['/packages.php'] = array();
+ if (!empty($auth_user) && !empty($auth_user->registered) &&
auth_check('pear.dev')) {
+ $sub['/packages.php']['/package-new.php'] = 'New Package';
+ $sub['/packages.php']['/release-upload.php'] = 'Upload
Release';
+ }
$sub['/packages.php']['/packages.php'] = 'List Packages';
$sub['/packages.php']['/search.php'] = 'Search Packages';
$sub['/packages.php']['/package-stats.php'] = 'Statistics';