]> git.mxchange.org Git - friendica.git/blobdiff - mod/fsuggest.php
Changed $a->get_baseurl() to App::get_baseurl()
[friendica.git] / mod / fsuggest.php
index 4370952ca1dd80997e270f7b2ff1c168659681c5..fcbadcc9b7f06a5febca3ee9167608f429f37086 100644 (file)
@@ -1,14 +1,15 @@
 <?php
 
 
-function fsuggest_post(&$a) {
+function fsuggest_post(App &$a) {
 
-       if(! local_user()) {
+       if (! local_user()) {
                return;
        }
 
-       if($a->argc != 2)
+       if ($a->argc != 2) {
                return;
+       }
 
        $contact_id = intval($a->argv[1]);
 
@@ -70,11 +71,11 @@ function fsuggest_post(&$a) {
 
 
 
-function fsuggest_content(&$a) {
+function fsuggest_content(App &$a) {
 
        require_once('include/acl_selectors.php');
 
-       if(! local_user()) {
+       if (! local_user()) {
                notice( t('Permission denied.') . EOL);
                return;
        }