1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-22 06:03:27 +02:00

Catch any debugger errors that could occur during Github sync. Added more deprecated items to the log.

This commit is contained in:
Cameron
2020-12-22 09:59:39 -08:00
parent 3f8e043998
commit 881670d92c
4 changed files with 17 additions and 26 deletions

View File

@@ -747,7 +747,16 @@ class admin_shortcodes
return null;
}
$items = e107_debug::getAliases();
try
{
$items = e107_debug::getAliases();
}
catch (Exception $e)
{
e107::getDebug()->log($e->getMessage());
return null; // likely during a github update.
}
$current = e107_debug::getShortcut();
$currentAlias = !empty($items[$current]) ? " (".$items[$current].")" : '';