mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 11:50:30 +02:00
Issue #2146 - Fix for theme-manager after model refactoring.
This commit is contained in:
@@ -721,7 +721,7 @@ class theme_admin_tree_model extends e_tree_model
|
||||
* Load data from theme meta file.
|
||||
* @param bool $force
|
||||
*/
|
||||
function load($force=false)
|
||||
function loadBatch($force=false)
|
||||
{
|
||||
$themeList = e107::getTheme()->getList();
|
||||
$newArray = array();
|
||||
@@ -786,7 +786,7 @@ class theme_admin_online_tree_model extends e_tree_model
|
||||
* Load data from theme meta file.
|
||||
* @param bool $force
|
||||
*/
|
||||
function load($force=false)
|
||||
function loadBatch($force=false)
|
||||
{
|
||||
$themeList = e107::getTheme()->getList();
|
||||
|
||||
|
@@ -4816,9 +4816,16 @@ var_dump($select_options);*/
|
||||
break;
|
||||
}
|
||||
|
||||
if(!empty($attributes['grid']) && empty($attributes['type']))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
if(empty($attributes['type']))
|
||||
{
|
||||
e107::getDebug()->log("Field '".$field."' is missing a value for 'type'.");
|
||||
// e107::getDebug()->log($value);
|
||||
// e107::getDebug()->log($attributes);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user