mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 14:46:56 +02:00
Issue #927 - Changed loading order of e_frontpage.
This commit is contained in:
@@ -49,7 +49,17 @@ if($sql->db_Select('page', 'page_id, page_title', "menu_name=''")) // TODO Move
|
||||
}
|
||||
|
||||
// Now let any plugins add to the options - must append to the $front_page array as above
|
||||
if(varset($frontPref['e_frontpage_list'])) // v1.x spec.
|
||||
|
||||
|
||||
//v2.x spec. ----------
|
||||
$new = e107::getAddonConfig('e_frontpage');
|
||||
foreach($new as $k=>$v)
|
||||
{
|
||||
$front_page[$k] = $v;
|
||||
}
|
||||
|
||||
// v1.x spec.---------------
|
||||
if(!empty($frontPref['e_frontpage_list']))
|
||||
{
|
||||
foreach($frontPref['e_frontpage_list'] as $val)
|
||||
{
|
||||
@@ -60,12 +70,7 @@ if(varset($frontPref['e_frontpage_list'])) // v1.x spec.
|
||||
}
|
||||
}
|
||||
|
||||
//v2.x spec.
|
||||
$new = e107::getAddonConfig('e_frontpage');
|
||||
foreach($new as $k=>$v)
|
||||
{
|
||||
$front_page[$k] = $v;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Make sure links relative to SITEURL
|
||||
|
Reference in New Issue
Block a user