Skip to content

Commit e8428fa

Browse files
Update header.php
1 parent a49c682 commit e8428fa

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

header.php

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,17 @@ function head() {
4141
$pagetitle, $cache, $ThemeSel;
4242

4343
$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+
*/
5655
if (file_exists(NUKE_THEMES_DIR.$ThemeSel.'/includes/mimetype.php')):
5756
include(NUKE_THEMES_DIR.$ThemeSel.'/includes/mimetype.php');
5857
echo "<!-- HEADER START ================================================================================================================================================================================================= -->\n";
@@ -169,7 +168,10 @@ function head() {
169168

170169
endif;
171170
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+
173175
/*
174176
* functions added to support dynamic and ordered loading of CSS, PHPCSS, and JS in <head> and before </body>
175177
* Code origin Raven Nuke CMS (http://www.ravenphpscripts.com)

0 commit comments

Comments
 (0)