mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 20:57:26 +02:00
Filter POST values on custom theme config
This commit is contained in:
@@ -8,10 +8,11 @@ class theme__blank implements e_theme_config
|
|||||||
function process() // Save posted values from config() fields.
|
function process() // Save posted values from config() fields.
|
||||||
{
|
{
|
||||||
$pref = e107::getConfig();
|
$pref = e107::getConfig();
|
||||||
|
$tp = e107::getParser();
|
||||||
|
|
||||||
$theme_pref = array();
|
$theme_pref = array();
|
||||||
$theme_pref['example'] = $_POST['_blank_example'];
|
$theme_pref['example'] = $tp->toDb($_POST['_blank_example']);
|
||||||
$theme_pref['example2'] = intval($_POST['_blank_example2']);
|
$theme_pref['example2'] = $tp->toDb($_POST['_blank_example2']);
|
||||||
|
|
||||||
$pref->set('sitetheme_pref', $theme_pref);
|
$pref->set('sitetheme_pref', $theme_pref);
|
||||||
return $pref->dataHasChanged();
|
return $pref->dataHasChanged();
|
||||||
|
Reference in New Issue
Block a user