$sitemapList = new SitemapList();
$sitemapList->getConditionBuilder()->add("sitemap.packageID IN (?)", array(PackageDependencyHandler::getInstance()->getDependencies()));
$sitemapList->sqlLimit = 0;
+ $sitemapList->sqlOrderBy = "sitemap.showOrder ASC";
$sitemapList->readObjects();
return $sitemapList->getObjects();
* @see wcf\system\package\plugin\AbstractXMLPackageInstallationPlugin::prepareImport()
*/
protected function prepareImport(array $data) {
+ $showOrder = (isset($data['elements']['showOrder'])) ? intval($data['elements']['showOrder']) : null;
+ $showOrder = $this->getShowOrder($showOrder, null, 'showOrder');
+
return array(
'sitemapName' => $data['attributes']['name'],
- 'className' => $data['elements']['classname']
+ 'className' => $data['elements']['classname'],
+ 'showOrder' => $showOrder
);
}