mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 12:20:44 +02:00
Addon order fix.
This commit is contained in:
@@ -464,6 +464,7 @@ class news_admin_ui extends e_admin_ui
|
|||||||
|
|
||||||
protected $cats = array();
|
protected $cats = array();
|
||||||
protected $newspost;
|
protected $newspost;
|
||||||
|
protected $addons = array();
|
||||||
|
|
||||||
protected $news_renderTypes = array( // TODO Placement location and template should be separate.
|
protected $news_renderTypes = array( // TODO Placement location and template should be separate.
|
||||||
|
|
||||||
@@ -732,8 +733,8 @@ class news_admin_ui extends e_admin_ui
|
|||||||
'options' );
|
'options' );
|
||||||
|
|
||||||
|
|
||||||
$addons = e107::getAddonConfig('e_admin',null, 'config',$this);
|
|
||||||
foreach($addons as $plug=>$config)
|
foreach($this->addons as $plug=>$config)
|
||||||
{
|
{
|
||||||
foreach($config['fields'] as $field=>$tmp)
|
foreach($config['fields'] as $field=>$tmp)
|
||||||
{
|
{
|
||||||
@@ -758,6 +759,9 @@ class news_admin_ui extends e_admin_ui
|
|||||||
|
|
||||||
function init()
|
function init()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
$this->addons = e107::getAddonConfig('e_admin',null, 'config', $this);
|
||||||
|
|
||||||
if(!empty($_POST['save_prefs']))
|
if(!empty($_POST['save_prefs']))
|
||||||
{
|
{
|
||||||
$this->saveSettings();
|
$this->saveSettings();
|
||||||
|
Reference in New Issue
Block a user