]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Admin/Federation.php
Remove deprecated App::query_string - replace with DI::args()->getQueryString()
[friendica.git] / src / Module / Admin / Federation.php
index 9c52845b93094f3c7a8c8e654701fc6bc2c4defb..35afb214485f7a05d41040aa6ff763c99f2a615b 100644 (file)
@@ -10,9 +10,9 @@ use Friendica\Module\BaseAdminModule;
 
 class Federation extends BaseAdminModule
 {
-       public static function content()
+       public static function content(array $parameters = [])
        {
-               parent::content();
+               parent::content($parameters);
 
                // get counts on active friendica, diaspora, redmatrix, hubzilla, gnu
                // social and statusnet nodes this node is knowing
@@ -88,7 +88,7 @@ class Federation extends BaseAdminModule
                                        } 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
                                        if (!empty($part) && strpos($part, '-')) {
-                                               $part = array_shift(explode('-', $part));
+                                               $part = explode('-', $part)[0];
                                        }
                                        if (!empty($part)) {
                                                if (empty($compacted[$part])) {