]> git.mxchange.org Git - friendica.git/blobdiff - mod/community.php
Changed $a->get_baseurl() to App::get_baseurl()
[friendica.git] / mod / community.php
index 40d4016f338b2b6738c1abc6e3f7666d888e8b0f..2c2ea32b33cc5ee7e4413c14bc9dddc9beb08946 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
-function community_init(&$a) {
-       if(! local_user()) {
+function community_init(App &$a) {
+       if (! local_user()) {
                unset($_SESSION['theme']);
                unset($_SESSION['mobile-theme']);
        }
@@ -71,7 +71,7 @@ function community_content(&$a, $update = 0) {
 
        $r = community_getitems($a->pager['start'], $a->pager['itemspage']);
 
-       if(! dbm::is_result($r)) {
+       if (! dbm::is_result($r)) {
                info( t('No results.') . EOL);
                return $o;
        }