// 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
* @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);
}
// 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