[geeklog-hg] geeklog: The header now processes autotags in templates before i...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Tue Sep 4 12:14:17 EDT 2012
changeset 8802:e026315215dc
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/e026315215dc
user: Tom <websitemaster at cogeco.net>
date: Tue Sep 04 12:13:08 2012 -0400
description:
The header now processes autotags in templates before it processes the actual templates (instead of after/post). This is done since blocks (which can be processed in the header if set by the theme) could have autotags in them which should not be converted (bug # 0001471)
diffstat:
public_html/lib-common.php | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (32 lines):
diff -r b8cb3ee77f18 -r e026315215dc public_html/lib-common.php
--- a/public_html/lib-common.php Tue Sep 04 10:54:43 2012 -0400
+++ b/public_html/lib-common.php Tue Sep 04 12:13:08 2012 -0400
@@ -949,7 +949,8 @@
'rightblocks' => 'rightblocks.thtml'
));
- $header->postprocess_fn = 'PLG_replaceTags';
+ // Needed to set for pre (instead of post) since blocks could contain autotags that are not meant to be converted
+ $header->preprocess_fn = 'PLG_replaceTags';
$header->set_var('doctype', $doctype);
@@ -1659,7 +1660,8 @@
'rightblocks' => 'rightblocks.thtml'
));
- $header->postprocess_fn = 'PLG_replaceTags';
+ // Needed to set for pre (instead of post) since blocks could contain autotags that are not meant to be converted
+ $header->preprocess_fn = 'PLG_replaceTags';
$header->set_var('doctype', $doctype);
@@ -1860,7 +1862,7 @@
// Call to plugins to set template variables in the header
PLG_templateSetVars( 'header', $header );
-
+
if( $_CONF['left_blocks_in_footer'] == 1 )
{
$header->set_var( 'left_blocks', '' );
More information about the geeklog-cvs
mailing list