Changed default value for package id
authorMarcel Werk <burntime@woltlab.com>
Mon, 10 Mar 2014 19:57:21 +0000 (20:57 +0100)
committerMarcel Werk <burntime@woltlab.com>
Mon, 10 Mar 2014 19:57:21 +0000 (20:57 +0100)
wcfsetup/install/files/lib/data/style/StyleAction.class.php
wcfsetup/install/files/lib/data/style/StyleEditor.class.php

index 6ece4b954e6b21cfb1b3394c75b8be92a1b88fcd..78c1cc6c7113d4ed581f232991d34f3bd12aac2c 100644 (file)
@@ -403,7 +403,6 @@ class StyleAction extends AbstractDatabaseObjectAction implements IToggleAction
                
                // create the new style
                $newStyle = StyleEditor::create(array(
-                       'packageID' => PACKAGE_ID,
                        'styleName' => $styleName,
                        'templateGroupID' => $this->styleEditor->templateGroupID,
                        'isDisabled' => 1, // newly created styles are disabled by default
index 1add0db2cb4c6399a9d23a547a47155550da02fe..4b69fa0d884cae40210ed7ecf5434dd83caa083e 100644 (file)
@@ -291,7 +291,7 @@ class StyleEditor extends DatabaseObjectEditor implements IEditableCachedObject
         * @param       StyleEditor     $style
         * @return      StyleEditor
         */
-       public static function import($filename, $packageID = PACKAGE_ID, StyleEditor $style = null) {
+       public static function import($filename, $packageID = 1, StyleEditor $style = null) {
                // open file
                $tar = new Tar($filename);
                
@@ -838,7 +838,7 @@ class StyleEditor extends DatabaseObjectEditor implements IEditableCachedObject
                }
                
                // default values
-               if (!isset($parameters['packageID'])) $parameters['packageID'] = PACKAGE_ID;
+               if (!isset($parameters['packageID'])) $parameters['packageID'] = 1;
                if (!isset($parameters['styleDate'])) $parameters['styleDate'] = gmdate('Y-m-d', TIME_NOW);
                
                // check if no default style is defined