<?php
-function community_init(&$a) {
- if(! local_user()) {
+function community_init(App &$a) {
+ if (! local_user()) {
unset($_SESSION['theme']);
unset($_SESSION['mobile-theme']);
}
$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;
}