mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #9434 from mattclegg/bugfix--silverstripe-admin--requirements
[BUGFIX] silverstripe/admin is not required to be installed
This commit is contained in:
commit
b6512edec8
@ -39,10 +39,12 @@ class CMSSecurity extends Security
|
|||||||
// Assign default cms theme and replace user-specified themes
|
// Assign default cms theme and replace user-specified themes
|
||||||
SSViewer::set_themes(LeftAndMain::config()->uninherited('admin_themes'));
|
SSViewer::set_themes(LeftAndMain::config()->uninherited('admin_themes'));
|
||||||
|
|
||||||
|
if (ModuleLoader::getModule('silverstripe/admin')) {
|
||||||
// Core styles / vendor scripts
|
// Core styles / vendor scripts
|
||||||
Requirements::javascript('silverstripe/admin: client/dist/js/vendor.js');
|
Requirements::javascript('silverstripe/admin: client/dist/js/vendor.js');
|
||||||
Requirements::css('silverstripe/admin: client/dist/styles/bundle.css');
|
Requirements::css('silverstripe/admin: client/dist/styles/bundle.css');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public function login($request = null, $service = Authenticator::CMS_LOGIN)
|
public function login($request = null, $service = Authenticator::CMS_LOGIN)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user