Added showOrder support in smiley pip
authorMarcel Werk <burntime@woltlab.com>
Wed, 13 Jul 2016 09:33:10 +0000 (11:33 +0200)
committerMarcel Werk <burntime@woltlab.com>
Wed, 13 Jul 2016 09:33:10 +0000 (11:33 +0200)
wcfsetup/install/files/lib/system/package/plugin/SmileyPackageInstallationPlugin.class.php

index 8cb05515cda5d81a7664228ed496bc4fca50d99c..d8b72552f9460ec8836ec7696e86cc4353e5e417 100644 (file)
@@ -47,11 +47,14 @@ class SmileyPackageInstallationPlugin extends AbstractXMLPackageInstallationPlug
         * @inheritDoc
         */
        protected function prepareImport(array $data) {
+               $showOrder = $this->getShowOrder(isset($data['elements']['showorder']) ? $data['elements']['showorder'] : null);
+               
                return [
                        'smileyCode' => $data['attributes']['name'],
                        'smileyTitle' => $data['elements']['title'],
                        'smileyPath' => $data['elements']['path'],
-                       'aliases' => (isset($data['elements']['aliases']) ? $data['elements']['aliases'] : '')
+                       'aliases' => (isset($data['elements']['aliases']) ? $data['elements']['aliases'] : ''),
+                       'showOrder' => $showOrder
                ];
        }