mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 21:27:25 +02:00
Merge branch master into dashboard.
This commit is contained in:
@@ -263,11 +263,12 @@ class adminstyle_infopanel
|
|||||||
{
|
{
|
||||||
foreach($user_pref['core-infopanel-menus'] as $val)
|
foreach($user_pref['core-infopanel-menus'] as $val)
|
||||||
{
|
{
|
||||||
// Custom menu.
|
// Custom menu (core).
|
||||||
if(is_numeric($val))
|
if(is_numeric($val))
|
||||||
{
|
{
|
||||||
$inc = e107::getMenu()->renderMenu($val, null, null, true);
|
$inc = e107::getMenu()->renderMenu($val, null, null, true);
|
||||||
}
|
}
|
||||||
|
// Plugin defined menu.
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$inc = $tp->parseTemplate("{PLUGIN=$val|TRUE}");
|
$inc = $tp->parseTemplate("{PLUGIN=$val|TRUE}");
|
||||||
@@ -688,12 +689,12 @@ class adminstyle_infopanel
|
|||||||
{
|
{
|
||||||
while ($row = e107::getDb()->db_Fetch())
|
while ($row = e107::getDb()->db_Fetch())
|
||||||
{
|
{
|
||||||
// Custom menu.
|
// Custom menu (core).
|
||||||
if(is_numeric($row['menu_path']))
|
if(is_numeric($row['menu_path']))
|
||||||
{
|
{
|
||||||
$path_to_menu = $row['menu_path'];
|
$path_to_menu = $row['menu_path'];
|
||||||
}
|
}
|
||||||
// Plugin menu.
|
// Plugin defined menu.
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$path_to_menu = $row['menu_path'].$row['menu_name'];
|
$path_to_menu = $row['menu_path'].$row['menu_name'];
|
||||||
|
Reference in New Issue
Block a user