From c9d7ac7a885abae43382291f87bfff90a092d30d Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Sat, 25 Apr 2015 22:34:26 +0930 Subject: [PATCH] Rename assets directory --- framework/core/src/Admin/AdminServiceProvider.php | 2 +- framework/core/src/Core/Models/User.php | 2 +- framework/core/src/Forum/ForumServiceProvider.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/framework/core/src/Admin/AdminServiceProvider.php b/framework/core/src/Admin/AdminServiceProvider.php index 4c5afc217..a3b42a5ec 100644 --- a/framework/core/src/Admin/AdminServiceProvider.php +++ b/framework/core/src/Admin/AdminServiceProvider.php @@ -38,7 +38,7 @@ class AdminServiceProvider extends ServiceProvider public function register() { $this->app['flarum.admin.assetManager'] = $this->app->share(function ($app) { - return new AssetManager($app['files'], $app['path.public'].'/flarum', 'admin'); + return new AssetManager($app['files'], $app['path.public'].'/assets', 'admin'); }); } } diff --git a/framework/core/src/Core/Models/User.php b/framework/core/src/Core/Models/User.php index 8bbab5c47..e1480cbea 100755 --- a/framework/core/src/Core/Models/User.php +++ b/framework/core/src/Core/Models/User.php @@ -235,7 +235,7 @@ class User extends Model */ public function getAvatarUrlAttribute() { - return $this->avatar_path ? asset('flarum/avatars/'.$this->avatar_path) : null; + return $this->avatar_path ? asset('assets/avatars/'.$this->avatar_path) : null; } /** diff --git a/framework/core/src/Forum/ForumServiceProvider.php b/framework/core/src/Forum/ForumServiceProvider.php index feec51f97..dc92e7f50 100644 --- a/framework/core/src/Forum/ForumServiceProvider.php +++ b/framework/core/src/Forum/ForumServiceProvider.php @@ -38,7 +38,7 @@ class ForumServiceProvider extends ServiceProvider public function register() { $this->app['flarum.forum.assetManager'] = $this->app->share(function ($app) { - return new AssetManager($app['files'], $app['path.public'].'/flarum', 'forum'); + return new AssetManager($app['files'], $app['path.public'].'/assets', 'forum'); }); } }