[geeklog-cvs] Geeklog-1.x/public_html lib-common.php,1.692,1.693

Blaine Lang blaine at qs1489.pair.com
Sun May 4 17:43:01 EDT 2008


Update of /cvsroot/geeklog/Geeklog-1.x/public_html
In directory qs1489.pair.com:/tmp/cvs-serv79259

Modified Files:
	lib-common.php 
Log Message:
Moved the call to PLG_templateSetVars to before the parse of the left and right block templates to support CTL and plugins that want to set template vars in the left and right block related templates.

Index: lib-common.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/lib-common.php,v
retrieving revision 1.692
retrieving revision 1.693
diff -C2 -d -r1.692 -r1.693
*** lib-common.php	1 May 2008 15:43:16 -0000	1.692
--- lib-common.php	4 May 2008 21:42:59 -0000	1.693
***************
*** 1112,1115 ****
--- 1112,1118 ----
      }
  
+     // Call to plugins to set template variables in the header
+     PLG_templateSetVars( 'header', $header );
+ 
      if( $_CONF['left_blocks_in_footer'] == 1 )
      {
***************
*** 1216,1222 ****
      $header->set_var( 'plg_headercode', $headercode . PLG_getHeaderCode() );
  
-     // Call to plugins to set template variables in the header
-     PLG_templateSetVars( 'header', $header );
- 
      // The following lines allow users to embed PHP in their templates.  This
      // is almost a contradition to the reasons for using templates but this may
--- 1219,1222 ----
***************
*** 2952,2956 ****
      }
      while( $start_pos !== false );
!     
      // handle [raw] ... [/raw]
      do
--- 2952,2956 ----
      }
      while( $start_pos !== false );
! 
      // handle [raw] ... [/raw]
      do




More information about the geeklog-cvs mailing list