1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-20 04:32:01 +02:00

Issue #2240 - Possible BC fixes.

This commit is contained in:
Cameron 2017-01-02 14:08:34 -08:00
parent d8258e8174
commit 9681816eb9
2 changed files with 7 additions and 2 deletions

View File

@ -22,8 +22,10 @@ if (!defined('e107_INIT'))
*/
function avatar($avatar)
{
return e107::getParser()->parseTemplate("{USER_AVATAR=".$avatar."}",true);
$data = array('user_image' => $avatar);
return e107::getParser()->toAvatar($data, array('type'=>'url'));
// return e107::getParser()->parseTemplate("{USER_AVATAR=".$avatar."}",true);
/*
global $tp;

View File

@ -540,6 +540,9 @@ class e_menu
$id = e107::getForm()->name2id($mpath . $mname);
$ns->setUniqueId($id);
global $pref; // possibly used by plugin menu.
$e107_debug ? include(e_PLUGIN.$mpath.$mname.'.php') : @include(e_PLUGIN.$mpath.$mname.'.php');
}
e107::getDB()->db_Mark_Time("(After ".$mname.")");