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:
@@ -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].")" : '';
|
||||
|
||||
|
Reference in New Issue
Block a user