1
0
mirror of https://github.com/flarum/core.git synced 2025-07-30 13:10:24 +02:00

Statically access Flarum version everywhere

One less reason to inject the huge Application class.

Refs #2055.
This commit is contained in:
Franz Liedke
2020-04-21 16:48:36 +02:00
parent 3f0f89afb1
commit df8f73bd3d
2 changed files with 2 additions and 2 deletions

View File

@@ -85,7 +85,7 @@ class ForumSerializer extends AbstractSerializer
if ($this->actor->can('administrate')) {
$attributes['adminUrl'] = $this->url->to('admin')->base();
$attributes['version'] = $this->app->version();
$attributes['version'] = Application::VERSION;
}
return $attributes;