Merge pull request #3539 from AndyHee/20170617-admin_settings
authorMichael Vogel <icarus@dabo.de>
Wed, 28 Jun 2017 05:24:41 +0000 (07:24 +0200)
committerGitHub <noreply@github.com>
Wed, 28 Jun 2017 05:24:41 +0000 (07:24 +0200)
Corrected names for counting/ listing account-types in admin panel

1  2 
mod/admin.php

diff --combined mod/admin.php
@@@ -558,11 -558,11 +558,11 @@@ function admin_page_summary(App $a) 
        $r = q("SELECT `page-flags`, COUNT(`uid`) AS `count` FROM `user` GROUP BY `page-flags`");
        $accounts = array(
                array(t('Normal Account'), 0),
-               array(t('Soapbox Account'), 0),
-               array(t('Community/Celebrity Account'), 0),
+               array(t('Automatic Follower Account'), 0),
+               array(t('Public Forum Account'), 0),
                array(t('Automatic Friend Account'), 0),
                array(t('Blog Account'), 0),
-               array(t('Private Forum'), 0)
+               array(t('Private Forum Account'), 0)
        );
  
        $users=0;
        $r = qu("SELECT COUNT(*) AS `total` FROM `queue` WHERE 1");
        $queue = (($r) ? $r[0]['total'] : 0);
  
 -      $r = qu("SELECT COUNT(*) AS `total` FROM `workerqueue` WHERE 1");
 +      $r = qu("SELECT COUNT(*) AS `total` FROM `workerqueue` WHERE NOT `done`");
        $workerqueue = (($r) ? $r[0]['total'] : 0);
  
        // We can do better, but this is a quick queue status
@@@ -1451,8 -1451,8 +1451,8 @@@ function admin_page_users(App $a) 
        $_setup_users = function ($e) use ($adminlist) {
                $accounts = array(
                        t('Normal Account'),
-                       t('Soapbox Account'),
-                       t('Community/Celebrity Account'),
+                       t('Automatic Follower Account'),
+                       t('Public Forum Account'),
                                                t('Automatic Friend Account')
                );
                $e['page-flags'] = $accounts[$e['page-flags']];