[geeklog-cvs] geeklog: Fixed template parsing; E_ALL fixes
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sat Aug 8 08:13:40 EDT 2009
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/063a9a0c9afb
changeset: 7233:063a9a0c9afb
user: Dirk Haun <dirk at haun-online.de>
date: Sat Aug 08 14:03:30 2009 +0200
description:
Fixed template parsing; E_ALL fixes
diffstat:
public_html/admin/plugins/staticpages/index.php | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r c29961d5e4f0 -r 063a9a0c9afb public_html/admin/plugins/staticpages/index.php
--- a/public_html/admin/plugins/staticpages/index.php Sat Aug 08 13:57:57 2009 +0200
+++ b/public_html/admin/plugins/staticpages/index.php Sat Aug 08 14:03:30 2009 +0200
@@ -316,8 +316,12 @@
$sp_template->set_var('sp_title', $title);
$sp_template->set_var('lang_metadescription', $LANG_STATIC['meta_description']);
$sp_template->set_var('lang_metakeywords', $LANG_STATIC['meta_keywords']);
- $sp_template->set_var('meta_description',$A['meta_description']);
- $sp_template->set_var('meta_keywords',$A['meta_keywords']);
+ if (!empty($A['meta_description'])) {
+ $sp_template->set_var('meta_description', $A['meta_description']);
+ }
+ if (!empty($A['meta_keywords'])) {
+ $sp_template->set_var('meta_keywords', $A['meta_keywords']);
+ }
$sp_template->set_var('lang_addtomenu', $LANG_STATIC['addtomenu']);
if (isset ($A['sp_onmenu']) && ($A['sp_onmenu'] == 1)) {
$sp_template->set_var('onmenu_checked', 'checked="checked"');
@@ -386,7 +390,8 @@
$sp_template->set_var( 'xhtml', XHTML );
$sp_template->set_var( 'gltoken_name', CSRF_TOKEN );
$sp_template->set_var( 'gltoken', SEC_createToken() );
- $retval .= $sp_template->parse('output','form');
+ $sp_template->parse('output', 'form');
+ $retval .= $sp_template->finish($sp_template->get_var('output'));
}
return $retval;
More information about the geeklog-cvs
mailing list