[geeklog-cvs] geeklog: Moved a code block for setting theme before include the...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Mon Apr 23 09:56:49 EDT 2012
changeset 8603:90b02603ff16
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/90b02603ff16
user: dengen
date: Mon Apr 23 22:54:57 2012 +0900
description:
Moved a code block for setting theme before include the scripts class.
See a variable $_CONF['theme'] used in the findJavaScriptLibraries method defined in the scripts class.
diffstat:
public_html/lib-common.php | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diffs (35 lines):
diff -r 92b9809e7fd6 -r 90b02603ff16 public_html/lib-common.php
--- a/public_html/lib-common.php Sun Apr 22 20:12:05 2012 +0100
+++ b/public_html/lib-common.php Mon Apr 23 22:54:57 2012 +0900
@@ -286,15 +286,6 @@
*/
require_once( $_CONF['path_system'] . 'lib-mbyte.php' );
-/**
-* Include the Scripts class
-*
-* This provides the ability to set css and javascript.
-*/
-
-require_once( $_CONF['path_system'] . 'classes/scripts.class.php' );
-$_SCRIPTS = new scripts();
-
// Set theme
$usetheme = '';
@@ -335,6 +326,15 @@
}
/**
+* Include the Scripts class
+*
+* This provides the ability to set css and javascript.
+*/
+
+require_once( $_CONF['path_system'] . 'classes/scripts.class.php' );
+$_SCRIPTS = new scripts();
+
+/**
* Include theme functions file which may/may not do anything
*/
if (file_exists($_CONF['path_layout'] . 'functions.php')) {
More information about the geeklog-cvs
mailing list