From: Tobias Diekershoff Date: Fri, 5 Apr 2019 04:39:34 +0000 (+0200) Subject: beautification of pleroma stats X-Git-Tag: 2019.06^2~226^2 X-Git-Url: https://reisub.nsupdate.info/git/?a=commitdiff_plain;h=1db0a2929133edde60ea26273ce9da588c8653dc;p=friendica.git%2F.git beautification of pleroma stats --- diff --git a/mod/admin.php b/mod/admin.php index 7f8e12e0c7..5fc53427c4 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -680,6 +680,8 @@ function admin_page_federation(App $a) do { $part = array_pop($parts); } while (!empty($parts) && ((strlen($part) >= 40) || (strlen($part) <= 3))); + // only take the x.x.x part of the version, not the "release" after the dash + $part = array_shift(explode('-', $part)); if (!empty($part)) { if (empty($compacted[$part])) {