mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-11 19:08:49 +00:00
[various] Remove App dependency from hook functions
This commit is contained in:
parent
b53914ee11
commit
39c654da00
87 changed files with 419 additions and 451 deletions
|
@ -28,7 +28,7 @@ function numfriends_install() {
|
|||
* and if so set our configuration setting for this person.
|
||||
*
|
||||
*/
|
||||
function numfriends_settings_post(App $a, $post) {
|
||||
function numfriends_settings_post($post) {
|
||||
if (! DI::userSession()->getLocalUserId() || empty($_POST['numfriends-submit'])) {
|
||||
return;
|
||||
}
|
||||
|
@ -43,7 +43,7 @@ function numfriends_settings_post(App $a, $post) {
|
|||
* Add our own settings info to the page.
|
||||
*
|
||||
*/
|
||||
function numfriends_settings(App &$a, array &$data)
|
||||
function numfriends_settings(array &$data)
|
||||
{
|
||||
if (!DI::userSession()->getLocalUserId()) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue