More logging
authorAlexander Ebert <ebert@woltlab.com>
Tue, 28 May 2013 18:55:12 +0000 (20:55 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 28 May 2013 18:55:12 +0000 (20:55 +0200)
wcfsetup/install/files/lib/system/package/plugin/PageMenuPackageInstallationPlugin.class.php

index f523c047e8a0603119179a50466b0391a217a369..16e069f4bd4fce73376b935a521a7c6d74dde440 100644 (file)
@@ -105,6 +105,16 @@ class PageMenuPackageInstallationPlugin extends AbstractMenuPackageInstallationP
                else {
                        file_put_contents(WCF_DIR.'__pageMenu.log', "\t!!! INCREASING SHOW ORDER !!!\n", FILE_APPEND);
                        
+                       $sql = "SELECT  showOrder
+                               FROM    wcf".WCF_N."_page_menu_item
+                               WHERE   menuItem = ?";
+                       $statement = WCF::getDB()->prepareStatement($sql);
+                       $statement->execute(array('wcf.user.dashboard'));
+                       $row = $statement->fetchArray();
+                       if ($row) {
+                               file_put_contents(WCF_DIR.'__pageMenu.log', "  show order of dashboard is currently {$row['showOrder']}\n\n", FILE_APPEND);
+                       }
+                       
                        // increase all showOrder values which are >= $showOrder
                        $sql = "UPDATE  wcf".WCF_N."_".$this->tableName."
                                SET     showOrder = showOrder + 1