From: Aaron Schulz Date: Wed, 15 Oct 2008 14:23:23 +0000 (+0000) Subject: Bump limit to 50 X-Git-Tag: 1.31.0-rc.0~44740 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=0eb1d8e3109ba12046b62b8498538ff1dc7bea1f;p=lhc%2Fweb%2Fwiklou.git Bump limit to 50 --- diff --git a/includes/EditPage.php b/includes/EditPage.php index 7d3d7e602f..be4dee1b19 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1017,7 +1017,7 @@ class EditPage { /** * Check if no edits were made by other users since * the time a user started editing the page. Limit to - * 20 revisions for the sake of sanity. + * 50 revisions for the sake of performance. */ protected function userWasLastToEdit( $id, $edittime ) { $dbw = wfGetDB( DB_MASTER ); @@ -1028,7 +1028,7 @@ class EditPage { 'rev_timestamp > '.$dbw->addQuotes( $dbw->timestamp($edittime) ) ), __METHOD__, - array( 'ORDER BY' => 'rev_timestamp ASC', 'LIMIT' => 20 ) ); + array( 'ORDER BY' => 'rev_timestamp ASC', 'LIMIT' => 50 ) ); while( $row = $res->fetchObject() ) { if( $row->rev_user != $id ) { return false;