mirror of
https://github.com/e107inc/e107.git
synced 2025-08-13 18:14:26 +02:00
Issue #4336 and tests for e107::plugLan() (e107::lan()) . Error message will be displayed in debug mode when a LAN file failed to load.
This commit is contained in:
@@ -10,7 +10,14 @@ $tp = e107::getParser();
|
||||
$template = e107::getCoreTemplate('page','panel');
|
||||
|
||||
//TODO Limits and cache etc.
|
||||
$data = $sql->retrieve("SELECT * FROM #page WHERE page_class IN (".USERCLASS_LIST.") AND FIND_IN_SET('panel', page_template) LIMIT 3", true);
|
||||
if(!$data = $sql->retrieve("SELECT * FROM #page WHERE page_class IN (".USERCLASS_LIST.") AND FIND_IN_SET('panel', page_template) LIMIT 3", true))
|
||||
{
|
||||
if(ADMIN)
|
||||
{
|
||||
echo "<div class='alert alert-danger'>There are no page items assigned to the 'panel' template.</div>";
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
//TODO Use shortcodes and template.
|
||||
foreach($data as $row)
|
||||
|
Reference in New Issue
Block a user