Further cleanup

This commit is contained in:
Chris Turner 2015-05-10 13:29:12 +12:00
parent 8516da9cdd
commit 897b4aacdc
3 changed files with 2 additions and 6 deletions

View File

@ -4,6 +4,7 @@ After:
- 'framework/*' - 'framework/*'
- 'cms/*' - 'cms/*'
--- ---
SiteConfig: SiteConfig:
extensions: extensions:
- FASettings - FASettings

View File

@ -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;

View File

@ -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(