public function store() { require_once JPATH_SITE . DS . 'components' . DS . 'com_onepage' . DS . 'helpers' . DS . 'config.php'; $theme = OPCconfig::get('selected_template'); jimport('joomla.filesystem.folder'); jimport('joomla.filesystem.file'); $theme = JFile::makeSafe($theme); $data = JRequest::get('post'); $config = OPCconfig::buildObject($data[$theme]); if (!is_object($config)) { $config = new stdClass(); } $prevConfig = OPCconfig::getValue('theme_config', $theme, 0, $config); OPCconfig::store('theme_config', $theme, 0, $config); $data = OPCconfig::getValue('theme_config', $file, 0, $default, false); return ''; }