[geeklog-cvs] geeklog: Replaced hard-coded 'N/A' with $LANG_ADMIN['na']
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sat Jul 25 03:56:27 EDT 2009
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/81732ea9ee69
changeset: 7183:81732ea9ee69
user: Dirk Haun <dirk at haun-online.de>
date: Sun Jul 05 13:07:53 2009 +0200
description:
Replaced hard-coded 'N/A' with $LANG_ADMIN['na']
diffstat:
public_html/admin/plugins.php | 2 +-
public_html/admin/user.php | 2 +-
public_html/lib-common.php | 12 ++++++------
system/lib-admin.php | 4 ++--
4 files changed, 10 insertions(+), 10 deletions(-)
diffs (102 lines):
diff -r 7e8585cb1ac5 -r 81732ea9ee69 public_html/admin/plugins.php
--- a/public_html/admin/plugins.php Sun Jul 05 11:08:29 2009 +0200
+++ b/public_html/admin/plugins.php Sun Jul 05 13:07:53 2009 +0200
@@ -125,7 +125,7 @@
}
$plugin_code_version = PLG_chkVersion($pi_name);
if (empty($plugin_code_version)) {
- $code_version = 'N/A';
+ $code_version = $LANG_ADMIN['na'];
} else {
$code_version = $plugin_code_version;
}
diff -r 7e8585cb1ac5 -r 81732ea9ee69 public_html/admin/user.php
--- a/public_html/admin/user.php Sun Jul 05 11:08:29 2009 +0200
+++ b/public_html/admin/user.php Sun Jul 05 13:07:53 2009 +0200
@@ -155,7 +155,7 @@
$user_templates->set_var('lang_userid', $LANG28[2]);
if (empty ($A['uid'])) {
- $user_templates->set_var ('user_id', 'n/a');
+ $user_templates->set_var ('user_id', $LANG_ADMIN['na']);
} else {
$user_templates->set_var ('user_id', $A['uid']);
}
diff -r 7e8585cb1ac5 -r 81732ea9ee69 public_html/lib-common.php
--- a/public_html/lib-common.php Sun Jul 05 11:08:29 2009 +0200
+++ b/public_html/lib-common.php Sun Jul 05 13:07:53 2009 +0200
@@ -2418,7 +2418,7 @@
*/
function COM_adminMenu( $help = '', $title = '', $position = '' )
{
- global $_TABLES, $_USER, $_CONF, $LANG01, $_BLOCK_TEMPLATE,
+ global $_TABLES, $_USER, $_CONF, $LANG01, $LANG_ADMIN, $_BLOCK_TEMPLATE,
$_DB_dbms, $config;
$retval = '';
@@ -2629,7 +2629,7 @@
$url = $_CONF['site_admin_url'] . '/mail.php';
$adminmenu->set_var( 'option_url', $url );
$adminmenu->set_var( 'option_label', $LANG01[105] );
- $adminmenu->set_var( 'option_count', 'N/A' );
+ $adminmenu->set_var( 'option_count', $LANG_ADMIN['na'] );
$menu_item = $adminmenu->parse( 'item',
( $thisUrl == $url ) ? 'current' : 'option' );
@@ -2662,7 +2662,7 @@
}
else
{
- $adminmenu->set_var( 'option_count', 'N/A' );
+ $adminmenu->set_var( 'option_count', $LANG_ADMIN['na'] );
}
$menu_item = $adminmenu->parse( 'item',
@@ -2694,7 +2694,7 @@
if( empty( $plg->numsubmissions ))
{
- $adminmenu->set_var( 'option_count', 'N/A' );
+ $adminmenu->set_var( 'option_count', $LANG_ADMIN['na'] );
}
else
{
@@ -2715,7 +2715,7 @@
$url = $_CONF['site_admin_url'] . '/database.php';
$adminmenu->set_var( 'option_url', $url );
$adminmenu->set_var( 'option_label', $LANG01[103] );
- $adminmenu->set_var( 'option_count', 'N/A' );
+ $adminmenu->set_var( 'option_count', $LANG_ADMIN['na'] );
$menu_item = $adminmenu->parse( 'item',
( $thisUrl == $url ) ? 'current' : 'option' );
@@ -2733,7 +2733,7 @@
. '/docs/english/index.html');
}
$adminmenu->set_var('option_label', $LANG01[113]);
- $adminmenu->set_var('option_count', 'N/A');
+ $adminmenu->set_var('option_count', $LANG_ADMIN['na']);
$menu_item = $adminmenu->parse('item', 'option');
$link_array[$LANG01[113]] = $menu_item;
}
diff -r 7e8585cb1ac5 -r 81732ea9ee69 system/lib-admin.php
--- a/system/lib-admin.php Sun Jul 05 11:08:29 2009 +0200
+++ b/system/lib-admin.php Sun Jul 05 13:07:53 2009 +0200
@@ -819,7 +819,7 @@
case 'online_days':
if ($fieldvalue < 0){
// users that never logged in, would have a negative online days
- $retval = "N/A";
+ $retval = $LANG_ADMIN['na'];
} else {
$retval = $fieldvalue;
}
@@ -1046,7 +1046,7 @@
case 'pi_version':
$plugin_code_version = PLG_chkVersion ($A['pi_name']);
if (empty ($plugin_code_version)) {
- $code_version = 'N/A';
+ $code_version = $LANG_ADMIN['na'];
} else {
$code_version = $plugin_code_version;
}
More information about the geeklog-cvs
mailing list