1
0
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:
Cameron
2017-01-25 17:57:38 -08:00
parent 01801d6b94
commit 5c3ce83168
6 changed files with 63 additions and 23 deletions

View File

@@ -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;
}