mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Fix icon urls
This commit is contained in:
parent
504b014bab
commit
c8f95182cb
@ -24,7 +24,7 @@ use SilverStripe\Control\HTTPResponse_Exception;
|
||||
use SilverStripe\Core\Convert;
|
||||
use SilverStripe\Core\Environment;
|
||||
use SilverStripe\Core\Injector\Injector;
|
||||
use SilverStripe\Core\Manifest\ModuleLoader;
|
||||
use SilverStripe\Core\Manifest\ModuleResourceLoader;
|
||||
use SilverStripe\Forms\DateField;
|
||||
use SilverStripe\Forms\DropdownField;
|
||||
use SilverStripe\Forms\FieldGroup;
|
||||
@ -173,8 +173,7 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
||||
Requirements::css('silverstripe/cms: client/dist/styles/bundle.css');
|
||||
Requirements::customCSS($this->generatePageIconsCss(), self::PAGE_ICONS_ID);
|
||||
|
||||
$module = ModuleLoader::getModule('silverstripe/cms');
|
||||
Requirements::add_i18n_javascript($module->getRelativeResourcePath('client/lang'), false, true);
|
||||
Requirements::add_i18n_javascript('silverstripe/cms: client/lang', false, true);
|
||||
|
||||
CMSBatchActionHandler::register('restore', CMSBatchAction_Restore::class);
|
||||
CMSBatchActionHandler::register('archive', CMSBatchAction_Archive::class);
|
||||
@ -1069,7 +1068,7 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
||||
'AddAction' => $singularName,
|
||||
'Description' => $description,
|
||||
// TODO Sprite support
|
||||
'IconURL' => $instance->config()->get('icon'),
|
||||
'IconURL' => ModuleResourceLoader::resourceURL($instance->config()->get('icon')),
|
||||
'Title' => $singularName,
|
||||
)));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user