|
|
|
@ -12,7 +12,7 @@ class PersonalMenusController extends ThinkController{
|
|
|
|
|
{
|
|
|
|
|
foreach($config as $k => $v)
|
|
|
|
|
{
|
|
|
|
|
$config[$k]['icon'] = is_https()?'https://':'http://' . $_SERVER['SERVER_NAME'] . $v['icon'];
|
|
|
|
|
$config[$k]['icon'] = is_https()?'https://':'http://' . $_SERVER['HTTP_HOST'] . $v['icon'];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
$this->assign('list',$config);
|
|
|
|
@ -95,7 +95,7 @@ class PersonalMenusController extends ThinkController{
|
|
|
|
|
{
|
|
|
|
|
if($v['id'] == $id)
|
|
|
|
|
{
|
|
|
|
|
$v['icon'] = is_https()?'https://':'http://' . $_SERVER['SERVER_NAME'] . $v['icon'];
|
|
|
|
|
$v['icon'] = is_https()?'https://':'http://' . $_SERVER['HTTP_HOST'] . $v['icon'];
|
|
|
|
|
$data = $v;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|