From: Alexander Ebert Date: Sun, 26 May 2013 20:20:46 +0000 (+0200) Subject: Improved debug log X-Git-Tag: 2.0.0_Beta_1~46^2~7 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a007495dbe66f5af7b0d0cbad5e3585e22356500;p=GitHub%2FWoltLab%2FWCF.git Improved debug log --- diff --git a/wcfsetup/install/files/lib/system/package/plugin/PageMenuPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/PageMenuPackageInstallationPlugin.class.php index c94c29de3d..71a3c8976c 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/PageMenuPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/PageMenuPackageInstallationPlugin.class.php @@ -86,9 +86,8 @@ class PageMenuPackageInstallationPlugin extends AbstractMenuPackageInstallationP */ protected function getMenuItemPosition(array $data) { file_put_contents(WCF_DIR.'__pageMenu.log', "Resolving menu position for '" . $data['menuItem'] . "' (" . $data['menuPosition'] . ") ...\n", FILE_APPEND); - file_put_contents(WCF_DIR.'__pageMenu.log', " showOrder = ".($data['showOrder'] === null) ? 'null' : $data['showOrder'] . "\n", FILE_APPEND); + file_put_contents(WCF_DIR.'__pageMenu.log', " showOrder = ".($data['showOrder'] === null ? 'null' : $data['showOrder']) . "\n", FILE_APPEND); file_put_contents(WCF_DIR.'__pageMenu.log', " parentMenuItem = ". $data['parentMenuItem'] . "\n", FILE_APPEND); - file_put_contents(WCF_DIR.'__pageMenu.log', " menu = ". $data['parentMenuItem'] . "\n", FILE_APPEND); if ($data['showOrder'] === null) { // get greatest showOrder value @@ -106,6 +105,7 @@ class PageMenuPackageInstallationPlugin extends AbstractMenuPackageInstallationP $showOrder = (!$maxShowOrder) ? 1 : ($maxShowOrder['showOrder'] + 1); } else { + file_put_contents(WCF_DIR.'__pageMenu.log', "\tINCREASING SHOW ORDER\n", FILE_APPEND); // increase all showOrder values which are >= $showOrder $sql = "UPDATE wcf".WCF_N."_".$this->tableName." SET showOrder = showOrder + 1