Rename assets directory

This commit is contained in:
Toby Zerner 2015-04-25 22:34:26 +09:30
parent 6db911420b
commit c9d7ac7a88
3 changed files with 3 additions and 3 deletions

View File

@ -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');
});
}
}

View File

@ -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;
}
/**

View File

@ -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');
});
}
}