]> git.mxchange.org Git - friendica.git/blobdiff - include/ForumManager.php
Degrade priority step by step
[friendica.git] / include / ForumManager.php
index 99a78be71ec56ed0d5bfe05d770b3c57dc89c75a..8f38ed3a38eac9e5f81d1f325c74abab2eeb4b58 100644 (file)
@@ -1,12 +1,14 @@
 <?php
 
+use Friendica\App;
+
 /**
- * @file include/forum.php
- * @brief Functions related to forum functionality *
+ * @file include/ForumManager.php
+ * @brief ForumManager class with its methods related to forum functionality *
  */
 
 /**
- * @brief This class handles functions related to the forum functionality
+ * @brief This class handles metheods related to the forum functionality
  */
 class ForumManager {
 
@@ -26,6 +28,7 @@ class ForumManager {
         *      'name'  => forum name
         *      'id'    => number of the key from the array
         *      'micro' => contact photo in format micro
+        *      'thumb' => contact photo in format thumb
         */
        public static function get_list($uid, $showhidden = true, $lastitem, $showprivate = false) {
 
@@ -38,7 +41,7 @@ class ForumManager {
                        $select = '(`forum` OR `prv`)';
                }
 
-               $contacts = q("SELECT `contact`.`id`, `contact`.`url`, `contact`.`name`, `contact`.`micro` FROM `contact`
+               $contacts = q("SELECT `contact`.`id`, `contact`.`url`, `contact`.`name`, `contact`.`micro`, `contact`.`thumb` FROM `contact`
                                WHERE `network`= 'dfrn' AND $select AND `uid` = %d
                                AND NOT `blocked` AND NOT `hidden` AND NOT `pending` AND NOT `archive`
                                AND `success_update` > `failure_update`
@@ -55,6 +58,7 @@ class ForumManager {
                                'name'  => $contact['name'],
                                'id'    => $contact['id'],
                                'micro' => $contact['micro'],
+                               'thumb' => $contact['thumb'],
                        );
                }
                return($forumlist);
@@ -86,7 +90,7 @@ class ForumManager {
                $total = count($contacts);
                $visible_forums = 10;
 
-               if(dba::is_result($contacts)) {
+               if (dbm::is_result($contacts)) {
 
                        $id = 0;