Set packageID in SmileyImporter
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 19 Jul 2013 14:15:16 +0000 (16:15 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 19 Jul 2013 14:15:47 +0000 (16:15 +0200)
wcfsetup/install/files/lib/system/importer/SmileyImporter.class.php

index 10dbde0b6f0093ac2236276a8f097266c933b4cd..498a1fee9e3706bbe19625968a91ae4d5014fbc4 100644 (file)
@@ -21,6 +21,8 @@ class SmileyImporter implements IImporter {
                $data['smileyPath'] = 'images/smilies/'.basename($additionalData['fileLocation']);
                if (!@copy($additionalData['fileLocation'], WCF_DIR.$data['smileyPath'])) return 0;
                
+               $data['packageID'] = 1;
+               
                // save smiley
                $smiley = SmileyEditor::create($data);