]> git.mxchange.org Git - friendica-addons.git/commitdiff
Merge pull request #488 from MrPetovan/task/fix-scrutinizer-issues
authorMichael Vogel <icarus@dabo.de>
Wed, 17 Jan 2018 06:05:14 +0000 (07:05 +0100)
committerGitHub <noreply@github.com>
Wed, 17 Jan 2018 06:05:14 +0000 (07:05 +0100)
Remove App::get_cached_avatar_image method

communityhome/communityhome.php
forumdirectory/forumdirectory.php

index 7cfb3d234fd158df854798d37c4fd7b516a84bc9..8364392bd2402726cf4c7562539db9647584b4ff 100644 (file)
@@ -102,7 +102,7 @@ function communityhome_home(&$a, &$o){
                                $entry = replace_macros($tpl,[
                                        '$id' => $rr['id'],
                                        '$profile_link' => $profile_link,
-                                       '$photo' => $a->get_cached_avatar_image($rr[$photo]),
+                                       '$photo' => $rr[$photo],
                                        '$alt_text' => $rr['name'],
                                ]);
                                $aside['$lastusers_items'][] = $entry;
index c7951b795fffbc37999e8e3a9a179ed47616a147..890c3d61b04c2610e45bf288602b4772107986ef 100644 (file)
@@ -171,7 +171,7 @@ function forumdirectory_content(&$a) {
                        $entry = replace_macros($tpl,[
                                '$id' => $rr['id'],
                                '$profile_link' => $profile_link,
-                               '$photo' => $a->get_cached_avatar_image($rr[$photo]),
+                               '$photo' => $rr[$photo],
                                '$alt_text' => $rr['name'],
                                '$name' => $rr['name'],
                                '$details' => $pdesc . $details,