[geeklog-cvs] geeklog: Added in a PLG_templateSetVars call for staticpages
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Tue Apr 19 13:29:25 EDT 2011
changeset 8235:4eb4bb47b523
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/4eb4bb47b523
user: Tom <websitemaster at cogeco.net>
date: Tue Apr 19 13:28:34 2011 -0400
description:
Added in a PLG_templateSetVars call for staticpages
diffstat:
plugins/staticpages/functions.inc | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diffs (23 lines):
diff -r 1d888e0c5663 -r 4eb4bb47b523 plugins/staticpages/functions.inc
--- a/plugins/staticpages/functions.inc Mon Apr 18 08:34:57 2011 -0400
+++ b/plugins/staticpages/functions.inc Tue Apr 19 13:28:34 2011 -0400
@@ -323,6 +323,9 @@
$spage = COM_newTemplate($template_path);
$spage->set_file(array('page' => 'staticpage.thtml',
'comments' => 'spcomments.thtml'));
+
+ $spage->set_var('sp_id', $page);
+
if (XHTML != '') {
$spage->set_var('xmlns', ' xmlns="http://www.w3.org/1999/xhtml"');
}
@@ -436,6 +439,9 @@
$spage->set_var('hits', $hits);
}
+ // Call to plugins to set template variables
+ PLG_templateSetVars('staticpage', $spage);
+
$retval .= $spage->finish($spage->parse('output', 'page'));
if ($A['sp_inblock'] == 1) {
$retval .= COM_endBlock(COM_getBlockTemplate('_staticpages_block',
More information about the geeklog-cvs
mailing list