BUGFIX Removed switch in MySQLDatabase->query() to directly echo queries with 'showqueries' parameter when request is called via ajax

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@114782 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-12-09 23:26:22 +00:00
parent 43debfafe9
commit ae2311bcd6

View File

@ -117,8 +117,7 @@ class MySQLDatabase extends SS_Database {
if(isset($_REQUEST['showqueries'])) {
$endtime = round(microtime(true) - $starttime,4);
if (!isset($_REQUEST['ajax'])) Debug::message("\n$sql\n{$endtime}ms\n", false);
else echo "\n$sql\n{$endtime}ms\n";
Debug::message("\n$sql\n{$endtime}ms\n", false);
}
if(!$handle && $errorLevel) $this->databaseError("Couldn't run query: $sql | " . mysql_error($this->dbConn), $errorLevel);