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:
parent
d8258e8174
commit
9681816eb9
@ -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;
|
||||
|
@ -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.")");
|
||||
|
Loading…
x
Reference in New Issue
Block a user