mirror of
https://github.com/e107inc/e107.git
synced 2025-07-05 07:14:03 +02:00
Debug alert added for misconfigured theme.php files.
This commit is contained in:
@ -642,11 +642,18 @@ echo "</head>\n";
|
|||||||
$HEADER = ($CUSTOMHEADER[$def]) ? $CUSTOMHEADER[$def] : $HEADER;
|
$HEADER = ($CUSTOMHEADER[$def]) ? $CUSTOMHEADER[$def] : $HEADER;
|
||||||
$FOOTER = ($CUSTOMFOOTER[$def]) ? $CUSTOMFOOTER[$def] : $FOOTER;
|
$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";
|
// echo " MODE 0.8";
|
||||||
$HEADER = $HEADER[$def];
|
if(isset($HEADER[$def]) && isset($FOOTER[$def]))
|
||||||
$FOOTER = $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'))
|
if(deftrue('e_IFRAME'))
|
||||||
|
Reference in New Issue
Block a user