X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fadmin.php;h=7f9000807be62021fa9535778bdc5bd5972b5c97;hb=737131837623b3f3870a84027202979fee6e3224;hp=e9e6323680bf0280eba6fb4ce5bf9cbd0fac13c2;hpb=1811ccc43de3ecd10df7c97e7d34574c3f4fff2b;p=friendica.git diff --git a/mod/admin.php b/mod/admin.php index e9e6323680..7f9000807b 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -271,6 +271,7 @@ function admin_page_federation(&$a) { // displayed on the stats page. $platforms = array('Friendica', 'Diaspora', '%%red%%', 'Hubzilla', 'GNU Social', 'StatusNet'); $counts = array(); + $total = 0; foreach ($platforms as $p) { // get a total count for the platform, the name and version of the @@ -278,6 +279,7 @@ function admin_page_federation(&$a) { $c = q('SELECT count(*) AS total, platform, network, version FROM gserver WHERE platform LIKE "%s" AND last_contact > last_failure ORDER BY version ASC;', $p); + $total = $total + $c[0]['total']; // what versions for that platform do we know at all? // again only the active nodes @@ -355,7 +357,7 @@ function admin_page_federation(&$a) { '$autoactive' => get_config('system', 'poco_completion'), '$counts' => $counts, '$version' => FRIENDICA_VERSION, - '$legendtext' => t('Currently this node is aware of nodes from the following platforms:'), + '$legendtext' => sprintf(t('Currently this node is aware of %d nodes from the following platforms:'), $total), '$baseurl' => $a->get_baseurl(), )); }