X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=doc%2Fthemes.md;h=60f4fdb96d288ca00417578bc9d149181dc4e86c;hb=19155a4bb2d3f0d3935286fbb5a97333150e7dc9;hp=7abd787e6cd31f3de867d291fa2b57dc5645a6aa;hpb=f4aa8236c455704a96d98dfc1042270e0c450dd1;p=friendica.git diff --git a/doc/themes.md b/doc/themes.md index 7abd787e6c..60f4fdb96d 100644 --- a/doc/themes.md +++ b/doc/themes.md @@ -123,13 +123,13 @@ The selected 1st part will be saved in the database by the theme_post function. 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']); } } @@ -137,7 +137,7 @@ Now that this information is set in the database, what should friendica do with 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) {