* (bug 11612) Days to show in recent changes cannot be larger than 7
* (bug 11131) Change filearchive width/height columns to int for Postgres
* Support plural in undeleted{revisions,revisions-files,files}
+* (bug 11343) If the database is read-only, ensure that undelete fails.
=== API changes in 1.12 ===
* @return int number of revisions restored
*/
private function undeleteRevisions( $timestamps ) {
+ if ( wfReadOnly() ) return 0;
+
$restoreAll = empty( $timestamps );
$dbw = wfGetDB( DB_MASTER );