1
0
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:
Cameron
2021-01-08 09:56:33 -08:00
parent eb2cb9a7cb
commit 452f594ad2
4 changed files with 64 additions and 10 deletions

View File

@@ -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)