Apply code standards in documentation

This commit is contained in:
Hypolite Petovan 2022-10-19 07:50:28 -04:00 committed by GitHub
parent 11944dda32
commit 429b2e0992
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,7 +123,7 @@ The selected 1st part will be saved in the database by the theme_post function.
function theme_post(App $a){ function theme_post(App $a){
// non local users shall not pass // non local users shall not pass
if (! Session::getLocalUser()) { if (!Session::getLocalUser()) {
return; return;
} }
// if the one specific submit button was pressed then proceed // if the one specific submit button was pressed then proceed
@ -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*. For this, have a look at the theme.php file of the *duepunto zero*.
There you'll find somethink alike There you'll find somethink alike
$colorset = DI::pConfig()->get( Session::getLocalUser(), 'duepuntozero','colorset'); $colorset = DI::pConfig()->get(Session::getLocalUser(), 'duepuntozero','colorset');
if (!$colorset) if (!$colorset)
$colorset = DI::config()->get('duepuntozero', 'colorset'); $colorset = DI::config()->get('duepuntozero', 'colorset');
if ($colorset) { if ($colorset) {