[geeklog-cvs] Geeklog-1.x/plugins/staticpages functions.inc, 1.115, 1.116
Michael Jervis
mjervis at qs1489.pair.com
Wed Feb 20 15:08:00 EST 2008
Update of /cvsroot/geeklog/Geeklog-1.x/plugins/staticpages
In directory qs1489.pair.com:/tmp/cvs-serv25857/plugins/staticpages
Modified Files:
functions.inc
Log Message:
Ensure every template class has site_url, site_admin_url, layout_url and xhtml variables set. My eyes, they bleed...
Index: functions.inc
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/staticpages/functions.inc,v
retrieving revision 1.115
retrieving revision 1.116
diff -C2 -d -r1.115 -r1.116
*** functions.inc 3 Feb 2008 19:23:24 -0000 1.115
--- functions.inc 20 Feb 2008 20:07:58 -0000 1.116
***************
*** 292,295 ****
--- 292,299 ----
$spage = new Template( $_CONF['path'] . 'plugins/staticpages/templates/' );
+ $spage->set_var('xhtml', XHTML);
+ $spage->set_var('site_url', $_CONF['site_url']);
+ $spage->set_var('layout_url', $_CONF['layout_url']);
+ $spage->set_var('site_admin_url', $_CONF['site_admin_url']);
$spage -> set_file( array('page'=>'staticpage.thtml',
'comments' => 'spcomments.thtml'));
***************
*** 870,873 ****
--- 874,881 ----
$spage = new Template( $_CONF['path'] . 'plugins/staticpages/templates/' );
$spage->set_file( array('page'=>'centerblock.thtml'));
+ $spage->set_var('xhtml', XHTML);
+ $spage->set_var('site_url', $_CONF['site_url']);
+ $spage->set_var('layout_url', $_CONF['layout_url']);
+ $spage->set_var('site_admin_url', $_CONF['site_admin_url']);
$icons = '';
More information about the geeklog-cvs
mailing list