From: Marcel Werk Date: Wed, 13 Jul 2016 09:33:10 +0000 (+0200) Subject: Added showOrder support in smiley pip X-Git-Tag: 3.0.0_Beta_1~1183 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f345c1aebfb0969246742867f01bcedd9ef625f9;p=GitHub%2FWoltLab%2FWCF.git Added showOrder support in smiley pip --- diff --git a/wcfsetup/install/files/lib/system/package/plugin/SmileyPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/SmileyPackageInstallationPlugin.class.php index 8cb05515cd..d8b72552f9 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/SmileyPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/SmileyPackageInstallationPlugin.class.php @@ -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 ]; }