Update of /cvsroot/php-blog/serendipity/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27651/include
Modified Files:
genpage.inc.php functions_smarty.inc.php
Log Message:
- Move smarty.php to genpage.inc.php and call it config.inc.php
Index: functions_smarty.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/include/functions_smarty.inc.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- functions_smarty.inc.php 23 Nov 2004 12:05:13 -0000 1.7
+++ functions_smarty.inc.php 23 Nov 2004 12:24:32 -0000 1.8
@@ -176,11 +176,6 @@
)
);
- // For advanced usage, we allow template authors to create a file 'smarty.php' where they can
- // setup custom smarty variables, modifieds etc. to use in their templates.
- // This is especially important in embedded installations.
- @include_once $serendipity['smarty']->template_dir . '/smarty.php';
-
return true;
}
Index: genpage.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/include/genpage.inc.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- genpage.inc.php 20 Nov 2004 19:26:43 -0000 1.5
+++ genpage.inc.php 23 Nov 2004 12:24:32 -0000 1.6
@@ -5,6 +5,10 @@
serendipity_smarty_init();
+// For advanced usage, we allow template authors to create a file 'config.inc.php' where they can
+// setup custom smarty variables, modifiers etc. to use in their templates.
+@include_once $serendipity['smarty']->template_dir . '/config.inc.php';
+
$serendipity['smarty']->assign(
array(
'leftSidebarElements' => serendipity_plugin_api::count_plugins('left'),
|