From: Alexander Ebert Date: Sun, 26 May 2013 17:43:43 +0000 (+0200) Subject: Finally fixed debug log :/ X-Git-Tag: 2.0.0_Beta_1~46^2~8 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bded2530eeead24cca9c9b4f5a06f32c1ff67578;p=GitHub%2FWoltLab%2FWCF.git Finally fixed 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 f1b6569c29..c94c29de3d 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,9 @@ 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_put_contents(WCF_DIR.'__pageMenu.log', " parentMenuItem = ". $data['parentMenuItem'] . "\n"); - file_put_contents(WCF_DIR.'__pageMenu.log', " menu = ". $data['parentMenuItem'] . "\n"); + 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 @@ -127,7 +127,7 @@ class PageMenuPackageInstallationPlugin extends AbstractMenuPackageInstallationP $showOrder = $data['showOrder']; } - file_put_contents(WCF_DIR.'__pageMenu.log', " calculated show order = ". $showOrder . "\n\n"); + file_put_contents(WCF_DIR.'__pageMenu.log', " calculated show order = ". $showOrder . "\n\n", FILE_APPEND); return $showOrder; } }