mirror of
https://github.com/e107inc/e107.git
synced 2025-04-20 20:51:53 +02:00
Fixes #3961 Avoid conflicts with earlier themes that may have a 'layouts' folder.
This commit is contained in:
parent
19aaffcbcc
commit
0e3f87cf25
@ -2031,7 +2031,7 @@ class e_menu_layout
|
||||
$theme = e107::pref('core','sitetheme');
|
||||
}
|
||||
|
||||
$sql = e107::getDb();
|
||||
$sql = e107::getDb(); // required
|
||||
$tp = e107::getParser();
|
||||
|
||||
$HEADER = null;
|
||||
@ -2048,15 +2048,11 @@ class e_menu_layout
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
e107::set('css_enabled',false);
|
||||
e107::set('js_enabled',false);
|
||||
|
||||
|
||||
|
||||
// new v2.2.2 HTML layout support.
|
||||
if(is_dir($path."layouts"))
|
||||
if(is_dir($path."layouts") && is_readable($path."theme.html"))
|
||||
{
|
||||
$lyt = scandir($path."layouts");
|
||||
$LAYOUT = array();
|
||||
|
Loading…
x
Reference in New Issue
Block a user