mirror of
https://github.com/flarum/core.git
synced 2025-07-25 10:41:24 +02:00
Polish admin dashboard
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
namespace Flarum\Api\Serializers;
|
||||
|
||||
use Flarum\Core;
|
||||
use Flarum\Core\Application;
|
||||
|
||||
class ForumSerializer extends Serializer
|
||||
{
|
||||
@@ -49,6 +50,7 @@ class ForumSerializer extends Serializer
|
||||
|
||||
if ($this->actor->isAdmin()) {
|
||||
$attributes['adminUrl'] = Core::url('admin');
|
||||
$attributes['version'] = Application::VERSION;
|
||||
}
|
||||
|
||||
return $attributes;
|
||||
|
@@ -23,11 +23,11 @@ use Illuminate\Contracts\Foundation\Application as ApplicationContract;
|
||||
class Application extends Container implements ApplicationContract
|
||||
{
|
||||
/**
|
||||
* The Laravel framework version.
|
||||
* The Flarum version.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const VERSION = '5.1.9 (LTS)';
|
||||
const VERSION = '0.1.0-beta';
|
||||
|
||||
/**
|
||||
* The base path for the Laravel installation.
|
||||
|
Reference in New Issue
Block a user