Merge remote-tracking branch 'refs/remotes/origin/3.0'
authorMarcel Werk <burntime@woltlab.com>
Wed, 20 Jun 2018 15:46:41 +0000 (17:46 +0200)
committerMarcel Werk <burntime@woltlab.com>
Wed, 20 Jun 2018 15:46:41 +0000 (17:46 +0200)
1  2 
wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php

index 1442064338c45020cacacc15f58c3026982da2e7,d28b9d99a37f87c426b65fd634b33c4de8fa46ad..9a48d5531747cf87c056a1cafb5f446c2061f1df
@@@ -650,9 -605,13 +648,15 @@@ class StyleAddForm extends AbstractFor
                        'styleVersion' => $this->styleVersion,
                        'templateGroupID' => $this->templateGroupID,
                        'tmpHash' => $this->tmpHash,
 -                      'variables' => $this->variables
 +                      'variables' => $this->variables,
 +                      'supportedApiVersions' => Style::$supportedApiVersions,
 +                      'newVariables' => $this->newVariables
                ]);
        }
+       
+       protected function setDefaultValues() {
+               $this->authorName = WCF::getUser()->username;
+               $this->styleDate = gmdate('Y-m-d', TIME_NOW);
+               $this->styleVersion = '1.0.0';
+       }
  }