1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 12:20:44 +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].")" : '';

View File

@@ -109,7 +109,7 @@
$this->ShowIf('SQL Analysis', $this->Show_SQL_Details());
$this->ShowIf('Shortcodes / BBCode', $this->Show_SC_BB());
$this->ShowIf('Paths', $this->Show_PATH());
$this->ShowIf('Deprecated Methods/Function Usage', $this->Show_DEPRECATED());
$this->ShowIf('Deprecated Methods/Functions', $this->Show_DEPRECATED());
if(E107_DBG_INCLUDES)
{

View File

@@ -6096,42 +6096,28 @@ class textparse {
public function editparse($text, $mode = 'off')
{
if(E107_DBG_DEPRECATED)
{
e107::getDebug()->logDeprecated();
}
trigger_error('<b>'.__METHOD__.' is deprecated. Use e107::getParser()->toForm($text) instead. ', E_USER_DEPRECATED);
return e107::getParser()->toForm($text);
}
public function tpa($text, $mode = '', $referrer = '', $highlight_search = false, $poster_id = '')
{
if(E107_DBG_DEPRECATED)
{
e107::getDebug()->logDeprecated();
}
trigger_error('<b>'.__METHOD__.' is deprecated. Use e107::getParser()->toHTML($text) instead. ', E_USER_DEPRECATED);
return e107::getParser()->toHTML($text, true, $mode, $poster_id);
}
public function tpj($text)
{
if(E107_DBG_DEPRECATED)
{
e107::getDebug()->logDeprecated();
}
trigger_error('<b>'.__METHOD__.' is deprecated. ', E_USER_DEPRECATED);
return $text;
}
public function formtpa($text, $mode = '')
{
if(E107_DBG_DEPRECATED)
{
e107::getDebug()->logDeprecated();
}
trigger_error('<b>'.__METHOD__.' is deprecated. Use e107::getParser()->toDB($text) instead. ', E_USER_DEPRECATED);
unset($mode); // keep PHPStorm happy
@@ -6140,11 +6126,7 @@ class textparse {
public function formtparev($text)
{
if(E107_DBG_DEPRECATED)
{
e107::getDebug()->logDeprecated();
}
trigger_error('<b>'.__METHOD__.' is deprecated. Use e107::getParser()->toForm($text) instead. ', E_USER_DEPRECATED);
return e107::getParser()->toForm($text);
}

View File

@@ -30,7 +30,7 @@
<css file="css/corporate.css" name="Corporate" scope='admin' thumbnail='images/admin_corporate.jpg' exclude='bootstrap' />
<css file="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.7/flatly/bootstrap.min.css" name="Flatly" scope='admin' exclude='bootstrap'/>
<css file="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.7/sandstone/bootstrap.min.css" name="Sandstone" scope='admin' exclude='bootstrap'/>
<css file="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.7/superhero/bootstrap.min.css" name="Superhero" thumbnail='images/admin_superhero.jpg' scope='admin,wysiwyg' exclude='bootstrap'/>
<css file="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.7/superhero/bootstrap.min.css" name="Superhero" thumbnail='images/admin_superhero.jpg' scope='admin' exclude='bootstrap'/>
<css file="*" name="*"/>
</stylesheets>
<layouts>