[geeklog-cvs] geeklog: Fixed display of center block staticpage if a staticpag...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sun Aug 28 11:08:58 EDT 2011
changeset 8378:fab2d0c884bc
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/fab2d0c884bc
user: Tom <websitemaster at cogeco.net>
date: Tue Jul 12 10:59:17 2011 -0400
description:
Fixed display of center block staticpage if a staticpage template is used (bug #0001370)
diffstat:
plugins/staticpages/functions.inc | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diffs (24 lines):
diff -r d4fdbbf3b0a5 -r fab2d0c884bc plugins/staticpages/functions.inc
--- a/plugins/staticpages/functions.inc Sat Jul 09 20:54:16 2011 +0200
+++ b/plugins/staticpages/functions.inc Tue Jul 12 10:59:17 2011 -0400
@@ -1047,8 +1047,18 @@
$spage->set_var('hits', $hits);
}
- $content = SP_render_content(stripslashes($S['sp_content']),
- $S['sp_php']);
+ $SP_retval = '';
+ $mode = '';
+ $args = array(
+ 'sp_id' => $S['sp_id'],
+ 'mode' => $mode
+ );
+ $svc_msg = array();
+
+ if (PLG_invokeService('staticpages', 'get', $args, $SP_retval, $svc_msg) == PLG_RET_OK) {
+ $content = SP_render_content(stripslashes($SP_retval['sp_content']), $SP_retval['sp_php']);
+ }
+
$spage->set_var('content', $content);
$retval .= $spage->finish($spage->parse('output', 'page'));
if (($S['sp_inblock'] == 1) && !empty ($S['sp_title']) &&
More information about the geeklog-cvs
mailing list