diff options
Diffstat (limited to 'core/Command/Status.php')
-rw-r--r-- | core/Command/Status.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/Command/Status.php b/core/Command/Status.php index 1f6d5705137..a00d4a94658 100644 --- a/core/Command/Status.php +++ b/core/Command/Status.php @@ -7,9 +7,9 @@ */ namespace OC\Core\Command; -use OC_Util; use OCP\Defaults; use OCP\IConfig; +use OCP\ServerVersion; use OCP\Util; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; @@ -19,6 +19,7 @@ class Status extends Base { public function __construct( private IConfig $config, private Defaults $themingDefaults, + private ServerVersion $serverVersion, ) { parent::__construct('status'); } @@ -41,8 +42,8 @@ class Status extends Base { $needUpgrade = Util::needUpgrade(); $values = [ 'installed' => $this->config->getSystemValueBool('installed', false), - 'version' => implode('.', Util::getVersion()), - 'versionstring' => OC_Util::getVersionString(), + 'version' => implode('.', $this->serverVersion->getVersion()), + 'versionstring' => $this->serverVersion->getVersionString(), 'edition' => '', 'maintenance' => $maintenanceMode, 'needsDbUpgrade' => $needUpgrade, |