[geeklog-cvs] geeklog: Only count the number of enabled plugins in the admin b...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Mon Apr 20 08:13:58 EDT 2009
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/f2083187ce9a
changeset: 6979:f2083187ce9a
user: Dirk Haun <dirk at haun-online.de>
date: Mon Apr 20 11:23:37 2009 +0200
description:
Only count the number of enabled plugins in the admin block
diffstat:
1 file changed, 9 insertions(+), 9 deletions(-)
public_html/lib-common.php | 18 +++++++++---------
diffs (29 lines):
diff -r 04bf6514d64c -r f2083187ce9a public_html/lib-common.php
--- a/public_html/lib-common.php Mon Apr 20 11:01:39 2009 +0200
+++ b/public_html/lib-common.php Mon Apr 20 11:23:37 2009 +0200
@@ -2666,16 +2666,16 @@
$link_array[$LANG01[116]] = $menu_item;
}
- if( SEC_hasRights( 'plugin.edit' ))
- {
+ if (SEC_hasRights('plugin.edit')) {
$url = $_CONF['site_admin_url'] . '/plugins.php';
- $adminmenu->set_var( 'option_url', $url );
- $adminmenu->set_var( 'option_label', $LANG01[77] );
- $adminmenu->set_var( 'option_count',
- COM_numberFormat( DB_count( $_TABLES['plugins'] )));
-
- $menu_item = $adminmenu->parse( 'item',
- ( $thisUrl == $url ) ? 'current' : 'option' );
+ $adminmenu->set_var('option_url', $url);
+ $adminmenu->set_var('option_label', $LANG01[77]);
+ $adminmenu->set_var('option_count',
+ COM_numberFormat(DB_count($_TABLES['plugins'],
+ 'pi_enabled', 1)));
+
+ $menu_item = $adminmenu->parse('item',
+ ($thisUrl == $url) ? 'current' : 'option');
$link_array[$LANG01[77]] = $menu_item;
}
More information about the geeklog-cvs
mailing list