mirror of
https://github.com/a2nt/silverstripe-font-awesome.git
synced 2024-10-22 17:05:51 +02:00
Further cleanup
This commit is contained in:
parent
8516da9cdd
commit
897b4aacdc
@ -4,6 +4,7 @@ After:
|
|||||||
- 'framework/*'
|
- 'framework/*'
|
||||||
- 'cms/*'
|
- 'cms/*'
|
||||||
---
|
---
|
||||||
|
|
||||||
SiteConfig:
|
SiteConfig:
|
||||||
extensions:
|
extensions:
|
||||||
- FASettings
|
- FASettings
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*/
|
*/
|
||||||
class FAInjector extends Extension
|
class FAInjector extends Extension
|
||||||
{
|
{
|
||||||
public function onBeforeInit()
|
public function onAfterInit()
|
||||||
{
|
{
|
||||||
if (SiteConfig::current_site_config()->UseThemeCSS) {
|
if (SiteConfig::current_site_config()->UseThemeCSS) {
|
||||||
return;
|
return;
|
||||||
|
@ -10,11 +10,6 @@ class FASettings extends DataExtension
|
|||||||
'UseThemeCSS' => 'boolean(1)',
|
'UseThemeCSS' => 'boolean(1)',
|
||||||
);
|
);
|
||||||
|
|
||||||
private static $defaults = array(
|
|
||||||
'UseCDN' => false,
|
|
||||||
'UseThemeCSS' => false,
|
|
||||||
);
|
|
||||||
|
|
||||||
public function updateCMSFields(FieldList $fields)
|
public function updateCMSFields(FieldList $fields)
|
||||||
{
|
{
|
||||||
$fields->addFieldsToTab('Root.FontAwesome', array(
|
$fields->addFieldsToTab('Root.FontAwesome', array(
|
||||||
|
Loading…
Reference in New Issue
Block a user