[geeklog-hg] geeklog: Staticpage with Add To Menu enabled but with empty labe...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Mon Jan 7 10:53:13 EST 2013
changeset 8910:860fbe590d5b
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/860fbe590d5b
user: Tom <websitemaster at cogeco.net>
date: Mon Jan 07 10:27:57 2013 -0500
description:
Staticpage with Add To Menu enabled but with empty label on save will copy over title for label (bug #0001542)
diffstat:
plugins/staticpages/services.inc.php | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (24 lines):
diff -r f470ff70684f -r 860fbe590d5b plugins/staticpages/services.inc.php
--- a/plugins/staticpages/services.inc.php Mon Jan 07 09:47:13 2013 -0500
+++ b/plugins/staticpages/services.inc.php Mon Jan 07 10:27:57 2013 -0500
@@ -196,7 +196,7 @@
} else {
$args['perm_anon'] = COM_applyBasicFilter($args['perm_anon'], true);
}
-
+
if (!isset($args['sp_onmenu'])) {
$args['sp_onmenu'] = '';
} elseif (($args['sp_onmenu'] == 'on') && empty($args['sp_label'])) {
@@ -253,6 +253,11 @@
$sp_label = '';
if (!empty($args['sp_label'])) {
$sp_label = $args['sp_label'];
+ } else {
+ // If empty but menu on then use title as default
+ if ($sp_onmenu == 'on') {
+ $sp_label = $sp_title;
+ }
}
$meta_description = $args['meta_description'];
$meta_keywords = $args['meta_keywords'];
More information about the geeklog-cvs
mailing list