[geeklog-hg] geeklog: Removed setting 'PLG_replaceTags' for template class po...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Thu Jul 11 19:34:35 EDT 2013


changeset 9176:6408fb1b9a32
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/6408fb1b9a32
user: Tom <websitemaster at cogeco.net>
date: Thu Jul 11 15:33:20 2013 -0400
description:
Removed setting 'PLG_replaceTags' for template class postprocess_fn and preprocess_fn variables since new template class already allows autotags in templates.

diffstat:

 public_html/article.php    |   1 -
 public_html/lib-common.php |  12 ------------
 system/lib-story.php       |   1 -
 3 files changed, 0 insertions(+), 14 deletions(-)

diffs (79 lines):

diff -r cdb07fa252a5 -r 6408fb1b9a32 public_html/article.php
--- a/public_html/article.php	Thu Jul 11 14:57:09 2013 -0400
+++ b/public_html/article.php	Thu Jul 11 15:33:20 2013 -0400
@@ -284,7 +284,6 @@
         // Display whats related
 
         $story_template = COM_newTemplate($_CONF['path_layout'] . 'article');
-        $story_template->postprocess_fn = 'PLG_replaceTags';
         $story_template->set_file('article','article.thtml');
  
         $story_template->set_var('story_id', $story->getSid());
diff -r cdb07fa252a5 -r 6408fb1b9a32 public_html/lib-common.php
--- a/public_html/lib-common.php	Thu Jul 11 14:57:09 2013 -0400
+++ b/public_html/lib-common.php	Thu Jul 11 15:33:20 2013 -0400
@@ -992,8 +992,6 @@
     }
 
     $header = COM_newTemplate($_CONF['path_layout']);
-    // 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_file( array(
         'header'         => 'header.thtml',
         'menunavigation' => 'menunavigation.thtml',
@@ -1403,9 +1401,6 @@
 
     // Set template directory
     $footer = COM_newTemplate($_CONF['path_layout']);
-    // Needed to set for pre (instead of post) since JavaScript could contain 
-    // autotag labels (like in configuration search) 
-    $footer->preprocess_fn = 'PLG_replaceTags';    
     // Set template file
     $footer->set_file( array(
             'footer'      => 'footer.thtml',
@@ -1694,8 +1689,6 @@
     }
 
     $header = COM_newTemplate($_CONF['path_layout']);
-    // 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_file( array(
         'header'         => 'header.thtml',
         'menunavigation' => 'menunavigation.thtml',
@@ -2075,9 +2068,6 @@
 
     // Set template directory
     $footer = COM_newTemplate($_CONF['path_layout']);
-    // Needed to set for pre (instead of post) since JavaScript could contain 
-    // autotag labels (like in configuration search) 
-    $footer->preprocess_fn = 'PLG_replaceTags';    
     // Set template file
     $footer->set_file( array(
             'footer'      => 'footer.thtml',
@@ -2293,7 +2283,6 @@
     }
 
     $block = COM_newTemplate($_CONF['path_layout']);
-    $block->postprocess_fn = 'PLG_replaceTags';
     $block->set_file( 'block', $template );
 
     $block->set_var( 'block_title', stripslashes( $title ));
@@ -2335,7 +2324,6 @@
     }
 
     $block = COM_newTemplate($_CONF['path_layout']);
-    $block->postprocess_fn = 'PLG_replaceTags';
     $block->set_file( 'block', $template );
 
     $block->parse( 'endHTML', 'block' );
diff -r cdb07fa252a5 -r 6408fb1b9a32 system/lib-story.php
--- a/system/lib-story.php	Thu Jul 11 14:57:09 2013 -0400
+++ b/system/lib-story.php	Thu Jul 11 15:33:20 2013 -0400
@@ -96,7 +96,6 @@
 
 
     $article = COM_newTemplate($_CONF['path_layout']);
-    $article->postprocess_fn = 'PLG_replaceTags';
     $article->set_file( array(
             'article'          => $storytpl,
             'bodytext'         => 'storybodytext.thtml',



More information about the geeklog-cvs mailing list