Removed useless check for existence of wfWaitForSlaves()
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Fri, 17 Jun 2011 16:39:21 +0000 (16:39 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Fri, 17 Jun 2011 16:39:21 +0000 (16:39 +0000)
maintenance/deleteDefaultMessages.php

index e518509..a33921b 100644 (file)
@@ -63,9 +63,7 @@ class DeleteDefaultMessages extends Maintenance {
                $dbw = wfGetDB( DB_MASTER );
 
                foreach ( $res as $row ) {
-                       if ( function_exists( 'wfWaitForSlaves' ) ) {
-                               wfWaitForSlaves();
-                       }
+                       wfWaitForSlaves();
                        $dbw->ping();
                        $title = Title::makeTitle( $row->page_namespace, $row->page_title );
                        $article = new Article( $title );