small work-around for style updating
authorAlexander Ebert <ebert@woltlab.com>
Sat, 9 Jan 2016 13:20:14 +0000 (14:20 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 9 Jan 2016 13:20:14 +0000 (14:20 +0100)
wcfsetup/install/files/lib/acp/form/StyleEditForm.class.php

index eb80dd2588f98cd0acdc8c640af64b4d41bd8125..6a17e4594f2a4219d6b49fac8120dbe82d2825df 100644 (file)
@@ -115,13 +115,14 @@ class StyleEditForm extends StyleAddForm {
        public function save() {
                AbstractForm::save();
                
-               if (!$this->style->isTainted) {
+               // TODO: how should this actually work?
+               /*if (!$this->style->isTainted) {
                        $this->variables['individualLess'] = Style::joinLessVariables($this->variables['individualLess'], $this->variables['individualLessCustom']);
                        $this->variables['overrideLess'] = Style::joinLessVariables($this->variables['overrideLess'], $this->variables['overrideLessCustom']);
                        
                        unset($this->variables['individualLessCustom']);
                        unset($this->variables['overrideLessCustom']);
-               }
+               }*/
                
                $this->objectAction = new StyleAction(array($this->style), 'update', array(
                        'data' => array_merge($this->additionalFields, array(