function theme_post(App $a){
// non local users shall not pass
- if (! local_user()) {
+ if (!Session::getLocalUser()) {
return;
}
// if the one specific submit button was pressed then proceed
if (isset($_POST['duepuntozero-settings-submit'])){
// and save the selection key into the personal config of the user
- DI::pConfig()->set(local_user(), 'duepuntozero', 'colorset', $_POST['duepuntozero_colorset']);
+ DI::pConfig()->set(Session::getLocalUser(), 'duepuntozero', 'colorset', $_POST['duepuntozero_colorset']);
}
}
For this, have a look at the theme.php file of the *duepunto zero*.
There you'll find somethink alike
- $colorset = DI::pConfig()->get( local_user(), 'duepuntozero','colorset');
+ $colorset = DI::pConfig()->get(Session::getLocalUser(), 'duepuntozero','colorset');
if (!$colorset)
$colorset = DI::config()->get('duepuntozero', 'colorset');
if ($colorset) {