Changes:
- added more type-hints - cleaned up some files (curly braces, spaces)
This commit is contained in:
parent
a1e17968d1
commit
04df7f6e05
74 changed files with 603 additions and 529 deletions
|
@ -38,7 +38,7 @@ function planets_install() {
|
|||
Logger::notice("installed planets");
|
||||
}
|
||||
|
||||
function planets_post_hook($a, &$item) {
|
||||
function planets_post_hook(App $a, &$item) {
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -96,11 +96,13 @@ function planets_post_hook($a, &$item) {
|
|||
*
|
||||
*/
|
||||
|
||||
function planets_settings_post($a,$post) {
|
||||
if(! local_user())
|
||||
function planets_settings_post(App $a,$post) {
|
||||
if (! local_user()) {
|
||||
return;
|
||||
if($_POST['planets-submit'])
|
||||
DI::pConfig()->set(local_user(),'planets','enable',intval($_POST['planets']));
|
||||
}
|
||||
if ($_POST['planets-submit']) {
|
||||
DI::pConfig()->set(local_user(), 'planets', 'enable' ,intval($_POST['planets']));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue