[geeklog-cvs] geeklog: Fixed localization of "Root" link category (bug #0001047)
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sat Dec 19 17:45:19 EST 2009
changeset 7536:4b9189b7a976
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/4b9189b7a976
user: Dirk Haun <dirk at haun-online.de>
date: Sat Dec 19 23:44:40 2009 +0100
description:
Fixed localization of "Root" link category (bug #0001047)
diffstat:
public_html/docs/history | 4 ++++
public_html/links/index.php | 6 +++++-
2 files changed, 9 insertions(+), 1 deletions(-)
diffs (30 lines):
diff -r 4ac1cf8af252 -r 4b9189b7a976 public_html/docs/history
--- a/public_html/docs/history Sat Dec 19 22:43:45 2009 +0100
+++ b/public_html/docs/history Sat Dec 19 23:44:40 2009 +0100
@@ -14,6 +14,10 @@
renamed our JavaScript remove() function to gl_cfg_remove() but forgot to
update the dynamically created function calls (cf. bug #0000681) [Dirk]
+Links Plugin
+------------
+- Fixed localization of "Root" category (bug #0001047) [Dirk]
+
Polls Plugin
------------
- Fixed wrong "access denied" message when attempting to view comments on a poll
diff -r 4ac1cf8af252 -r 4b9189b7a976 public_html/links/index.php
--- a/public_html/links/index.php Sat Dec 19 22:43:45 2009 +0100
+++ b/public_html/links/index.php Sat Dec 19 23:44:40 2009 +0100
@@ -296,7 +296,11 @@
$currentcid = $A['cid'];
$currentcategory = DB_getItem($_TABLES['linkcategories'],
'category', "cid = '" . addslashes($currentcid) . "'");
- $linklist->set_var('link_category', $currentcategory);
+ if ($A['cid'] == $_LI_CONF['root']) {
+ $linklist->set_var('link_category', $LANG_LINKS['root']);
+ } else {
+ $linklist->set_var('link_category', $currentcategory);
+ }
}
prepare_link_item($A, $linklist);
More information about the geeklog-cvs
mailing list