]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/theme.php
*much* more usage of App::get_baseurl() instead of $a->get_baseurl() (coding conventi...
[friendica.git] / view / theme / frio / theme.php
index 3fb889cdc375ad2635ef4fc073cf8a7a474a130d..5bc5140bf1db2b5a97b3d8d56934add6a026df3b 100644 (file)
@@ -21,7 +21,7 @@ function frio_init(&$a) {
 
        set_template_engine($a, 'smarty3');
 
-       $baseurl = $a->get_baseurl();
+       $baseurl = App::get_baseurl();
 
        $style = get_pconfig(local_user(), 'frio', 'style');
 
@@ -235,7 +235,7 @@ function frio_remote_nav($a,&$nav) {
                $nav['remote'] = t("Visitor");
        }
 
-       if(dbm::is_result($r)){
+       if (dbm::is_result($r)){
                        $nav['userinfo'] = array(
                                'icon' => (dbm::is_result($r) ? $r[0]['photo'] : "images/person-48.jpg"),
                                'name' => $r[0]['name'],
@@ -299,7 +299,7 @@ function frio_acl_lookup($a, &$results) {
                $r = q("SELECT COUNT(*) AS `total` FROM `contact`
                        WHERE `uid` = %d AND `self` = 0 AND `pending` = 0 $sql_extra $sql_extra2 ",
                        intval($_SESSION['uid']));
-               if(dbm::is_result($r)) {
+               if (dbm::is_result($r)) {
                        $total = $r[0]["total"];
                }
 
@@ -311,7 +311,7 @@ function frio_acl_lookup($a, &$results) {
 
                $contacts = array();
 
-               if(dbm::is_result($r)) {
+               if (dbm::is_result($r)) {
                        foreach($r as $rr) {
                                $contacts[] = _contact_detail_for_template($rr);
                        }