mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
Issue #2240 - Possible BC fixes.
This commit is contained in:
@@ -22,8 +22,10 @@ if (!defined('e107_INIT'))
|
|||||||
*/
|
*/
|
||||||
function avatar($avatar)
|
function avatar($avatar)
|
||||||
{
|
{
|
||||||
|
$data = array('user_image' => $avatar);
|
||||||
return e107::getParser()->parseTemplate("{USER_AVATAR=".$avatar."}",true);
|
|
||||||
|
return e107::getParser()->toAvatar($data, array('type'=>'url'));
|
||||||
|
// return e107::getParser()->parseTemplate("{USER_AVATAR=".$avatar."}",true);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
global $tp;
|
global $tp;
|
||||||
|
@@ -540,6 +540,9 @@ class e_menu
|
|||||||
$id = e107::getForm()->name2id($mpath . $mname);
|
$id = e107::getForm()->name2id($mpath . $mname);
|
||||||
$ns->setUniqueId($id);
|
$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_debug ? include(e_PLUGIN.$mpath.$mname.'.php') : @include(e_PLUGIN.$mpath.$mname.'.php');
|
||||||
}
|
}
|
||||||
e107::getDB()->db_Mark_Time("(After ".$mname.")");
|
e107::getDB()->db_Mark_Time("(After ".$mname.")");
|
||||||
|
Reference in New Issue
Block a user