(bug 14042) Calling Database::limitResult() misplaced the comment in the log file
authorRoan Kattouw <catrope@users.mediawiki.org>
Thu, 8 May 2008 15:50:53 +0000 (15:50 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Thu, 8 May 2008 15:50:53 +0000 (15:50 +0000)
RELEASE-NOTES
includes/Database.php

index a248230..88ef81e 100644 (file)
@@ -261,6 +261,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 13615) Update case mappings and normalization to Unicode 5.1.0
   Note that case mappings will only be used if mbstring extension is not present.
 * (bug 14044) Don't increment page view counters on views from bot users
+* (bug 14042) Calling Database::limitResult() misplaced the comment in the log file
 
 === API changes in 1.13 ===
 
index b702038..b9b4502 100644 (file)
@@ -1668,7 +1668,7 @@ class Database {
                if( !is_numeric($limit) ) {
                        throw new DBUnexpectedError( $this, "Invalid non-numeric limit passed to limitResult()\n" );
                }
-               return " $sql LIMIT "
+               return "$sql LIMIT "
                                . ( (is_numeric($offset) && $offset != 0) ? "{$offset}," : "" )
                                . "{$limit} ";
        }