mirror of
https://github.com/e107inc/e107.git
synced 2025-07-03 22:34:55 +02:00
Debug alert added for misconfigured theme.php files.
This commit is contained in:
@ -642,12 +642,19 @@ echo "</head>\n";
|
||||
$HEADER = ($CUSTOMHEADER[$def]) ? $CUSTOMHEADER[$def] : $HEADER;
|
||||
$FOOTER = ($CUSTOMFOOTER[$def]) ? $CUSTOMFOOTER[$def] : $FOOTER;
|
||||
}
|
||||
elseif($def && isset($HEADER[$def]) && isset($FOOTER[$def])) // 2.0 themes - we use only $HEADER and $FOOTER arrays.
|
||||
elseif($def) // 2.0 themes - we use only $HEADER and $FOOTER arrays.
|
||||
{
|
||||
// echo " MODE 0.8";
|
||||
if(isset($HEADER[$def]) && isset($FOOTER[$def]))
|
||||
{
|
||||
$HEADER = $HEADER[$def];
|
||||
$FOOTER = $FOOTER[$def];
|
||||
}
|
||||
else // Debug info only. No need for LAN.
|
||||
{
|
||||
echo e107::getMessage()->addError("There is no layout in theme.php with the key: <b>".$def."</b>")->render();
|
||||
}
|
||||
}
|
||||
|
||||
if(deftrue('e_IFRAME'))
|
||||
{
|
||||
|
Reference in New Issue
Block a user