mirror of
https://github.com/flarum/framework.git
synced 2024-12-02 15:03:44 +08:00
Rename assets directory
This commit is contained in:
parent
6db911420b
commit
c9d7ac7a88
|
@ -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');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user