mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-12 11:28:49 +00:00
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
|
@ -28,11 +28,12 @@ function numfriends_install() {
|
|||
* and if so set our configuration setting for this person.
|
||||
*
|
||||
*/
|
||||
function numfriends_settings_post($a,$post) {
|
||||
if(! local_user() || empty($_POST['numfriends-submit']))
|
||||
function numfriends_settings_post(App $a, $post) {
|
||||
if (! local_user() || empty($_POST['numfriends-submit'])) {
|
||||
return;
|
||||
}
|
||||
|
||||
DI::pConfig()->set(local_user(),'system','display_friend_count',intval($_POST['numfriends']));
|
||||
DI::pConfig()->set(local_user(), 'system', 'display_friend_count', intval($_POST['numfriends']));
|
||||
}
|
||||
|
||||
|
||||
|
@ -44,7 +45,7 @@ function numfriends_settings_post($a,$post) {
|
|||
*/
|
||||
function numfriends_settings(App &$a, array &$data)
|
||||
{
|
||||
if (! local_user()) {
|
||||
if (!local_user()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue