[geeklog-cvs] geeklog: denim: initialise inside theme_init() function

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Mon Apr 30 04:04:48 EDT 2012


changeset 8651:42fa90a8fe9d
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/42fa90a8fe9d
user: Rouslan Placella <rouslan at placella.com>
date: Mon Apr 30 09:03:52 2012 +0100
description:
denim: initialise inside theme_init() function

diffstat:

 public_html/layout/denim/functions.php |  11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diffs (28 lines):

diff -r 0e437c8ea14f -r 42fa90a8fe9d public_html/layout/denim/functions.php
--- a/public_html/layout/denim/functions.php	Sun Apr 29 22:06:43 2012 +0100
+++ b/public_html/layout/denim/functions.php	Mon Apr 30 09:03:52 2012 +0100
@@ -39,11 +39,6 @@
     die('This file can not be used on its own!');
 }
 
-$_CONF['support_theme_2.0'] = true; // support new theme format for the later Geeklog2.0
-
-$_CONF['left_blocks_in_footer'] = 1;
-
-
 /**
  * Return the configuration values for the theme
  */
@@ -94,7 +89,11 @@
  */
 function theme_init_denim()
 {
-    global $_BLOCK_TEMPLATE;
+    global $_BLOCK_TEMPLATE, $_CONF;
+
+    $_CONF['support_theme_2.0'] = true; // support new theme format for the later Geeklog2.0
+
+    $_CONF['left_blocks_in_footer'] = 1;
 
     /*
      * For left/right block support there is no longer any need for the theme to



More information about the geeklog-cvs mailing list