Some cleanup to ProtectionForm:
[lhc/web/wiklou.git] / maintenance / dumpSisterSites.php
index bc4acd8..f5abcd1 100644 (file)
@@ -31,7 +31,7 @@ class DumpSisterSites extends Maintenance {
                parent::__construct();
                $this->mDescription = "Quickie page name dump script for SisterSites usage";
        }
-       
+
        public function execute() {
                $dbr = wfGetDB( DB_SLAVE );
                $dbr->bufferResults( false );
@@ -48,9 +48,8 @@ class DumpSisterSites extends Maintenance {
                        $text = $title->getPrefixedText();
                        $this->output( "$url $text\n" );
                }
-               $dbr->freeResult( $result );
        }
 }
 
 $maintClass = "DumpSisterSites";
-require_once( DO_MAINTENANCE );
+require_once( RUN_MAINTENANCE_IF_MAIN );