Logging of SQL update query
authorAlexander Ebert <ebert@woltlab.com>
Tue, 28 May 2013 18:29:14 +0000 (20:29 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 28 May 2013 18:29:14 +0000 (20:29 +0200)
wcfsetup/install/files/lib/system/package/plugin/PageMenuPackageInstallationPlugin.class.php

index ac965589155003ce56c13cbf577c7a6464288811..f523c047e8a0603119179a50466b0391a217a369 100644 (file)
@@ -121,6 +121,8 @@ class PageMenuPackageInstallationPlugin extends AbstractMenuPackageInstallationP
                        
                        $statement->execute($parameters);
                        
+                       file_put_contents(WCF_DIR.'__pageMenu.log', "\n\nSQL\n\n{$sql}\n\nPARAMETERS\n\n".print_r($parameters, true)."\n\n", FILE_APPEND);
+                       
                        // return the wanted showOrder level
                        //return $data['showOrder'];
                        $showOrder = $data['showOrder'];