mirror of
https://github.com/e107inc/e107.git
synced 2025-07-30 19:30:25 +02:00
Improved detection of deprecated functions/methods and display in DEBUG mode: deprecated.
This commit is contained in:
@@ -17,11 +17,13 @@ if (!defined('e107_INIT'))
|
||||
exit;
|
||||
}
|
||||
/**
|
||||
* @DEPRECATED
|
||||
* @deprecated
|
||||
* Use e107::getParser()->toAvatar() instead.
|
||||
*/
|
||||
function avatar($avatar)
|
||||
{
|
||||
trigger_error('<b>'.__METHOD__.' is deprecated.</b> Use e107::getParser()->toAvatar() instead.', E_USER_DEPRECATED); // no LAN
|
||||
|
||||
$data = array('user_image' => $avatar);
|
||||
|
||||
return e107::getParser()->toAvatar($data, array('type'=>'url'));
|
||||
|
Reference in New Issue
Block a user