@@ -41,18 +41,17 @@ function head() {
41
41
$ pagetitle , $ cache , $ ThemeSel ;
42
42
43
43
$ ThemeSel = get_theme ();
44
- include_secure ("themes/ $ ThemeSel/theme.php " );
45
-
46
- /**
47
- * Doctype/Mime Type auto selector - This checks each theme as it is switched and will load a mimetype.php from the themes includes folder.
48
- * This allows for many different doctypes to be used on the Fly by whichever theme is selected.
49
- * This is great for porting Legacy themes or even just to show the versatility of PHP-Nuke.
50
- * If a mimetype.php file is not detected it uses the default doctype of XHTML 1.0 Transitional
51
- *
52
- * @author Ernest Allen Bufffington
53
- * @version 1.0
54
- * @license GPL-3.0
55
- */
44
+
45
+ /**
46
+ * Doctype/Mime Type auto selector - This checks each theme as it is switched and will load a mimetype.php from the themes includes folder.
47
+ * This allows for many different doctypes to be used on the Fly by whichever theme is selected.
48
+ * This is great for porting Legacy themes or even just to show the versatility of PHP-Nuke.
49
+ * If a mimetype.php file is not detected it uses the default doctype of XHTML 1.0 Transitional
50
+ *
51
+ * @author Ernest Allen Bufffington
52
+ * @version 1.0
53
+ * @license GPL-3.0
54
+ */
56
55
if (file_exists (NUKE_THEMES_DIR .$ ThemeSel .'/includes/mimetype.php ' )):
57
56
include (NUKE_THEMES_DIR .$ ThemeSel .'/includes/mimetype.php ' );
58
57
echo "<!-- HEADER START ================================================================================================================================================================================================= --> \n" ;
@@ -169,7 +168,10 @@ function head() {
169
168
170
169
endif ;
171
170
endif ;
172
-
171
+
172
+ echo "\n<!-- Loadiing themes/ " .$ ThemeSel ."/theme.php from header.php --> \n" ;
173
+ include_once (NUKE_THEMES_DIR .$ ThemeSel .'/theme.php ' );
174
+
173
175
/*
174
176
* functions added to support dynamic and ordered loading of CSS, PHPCSS, and JS in <head> and before </body>
175
177
* Code origin Raven Nuke CMS (http://www.ravenphpscripts.com)
0 commit comments