mirror of
https://github.com/e107inc/e107.git
synced 2025-08-19 04:41:53 +02:00
Custom Field Fixes. Theme pref default fix. Shortcode updated: {CHAPTER_MENUS: name=chapter-sef-url}
This commit is contained in:
@@ -47,13 +47,24 @@
|
||||
*/
|
||||
public function loadConfig($data)
|
||||
{
|
||||
if(empty($data))
|
||||
{
|
||||
return $this;
|
||||
}
|
||||
|
||||
if(is_array($data))
|
||||
{
|
||||
$this->_config = $data;
|
||||
return $this;
|
||||
}
|
||||
|
||||
$this->_config = e107::unserialize($data);
|
||||
$tp = e107::getParser();
|
||||
|
||||
if($arr = $tp->isJSON($data))
|
||||
{
|
||||
$this->_config = $arr;
|
||||
}
|
||||
|
||||
|
||||
// e107::getDebug()->log($this->_config);
|
||||
|
||||
@@ -401,7 +412,7 @@
|
||||
|
||||
}
|
||||
|
||||
$postData[$fieldname] = $new;
|
||||
$postData[$fieldname] = empty($new) ? null : $new;
|
||||
|
||||
return $postData;
|
||||
|
||||
@@ -439,6 +450,11 @@
|
||||
|
||||
}
|
||||
|
||||
if(empty($new_data[$fieldname]))
|
||||
{
|
||||
// $new_data[$fieldname] = array();
|
||||
}
|
||||
|
||||
return $new_data;
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user