1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-19 04:41:53 +02:00

Improved detection of deprecated functions/methods and display in DEBUG mode: deprecated.

This commit is contained in:
Cameron
2020-12-21 10:00:28 -08:00
parent 63527c4f19
commit 630f3f415f
30 changed files with 224 additions and 82 deletions

View File

@@ -1143,7 +1143,8 @@ i.e-cat_users-32{ background-position: -555px 0; width: 32px; height: 32px; }
*/
function pluginLinksOld($iconSize = E_16_PLUGMANAGER, $linkStyle = 'adminb')
{
trigger_error('<b>'.__METHOD__.' is deprecated.</b>', E_USER_DEPRECATED); // NO LAN
$sql = e107::getDb();
$tp = e107::getParser();
@@ -2100,11 +2101,12 @@ class navigation_shortcodes extends e_shortcode
}
/**
* @Deprecated - Use {LINK_ICON} instead.
* @deprecated - Use {LINK_ICON} instead.
*/
function sc_link_image($parm='')
{
e107::getMessage()->addDebug("Using deprecated shortcode: {LINK_IMAGE} - use {LINK_ICON} instead.");
trigger_error('<b>{LINK_IMAGE} is deprecated. Use {LINK_ICON} instead</b>', E_USER_DEPRECATED); // NO LAN
return $this->sc_link_icon($parm);
}