* Fix PHP notice and estimates for dumpBackup.php and friends
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 11 Oct 2006 17:58:42 +0000 (17:58 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 11 Oct 2006 17:58:42 +0000 (17:58 +0000)
RELEASE-NOTES
maintenance/backup.inc

index a0e109b..119c6d7 100644 (file)
@@ -30,7 +30,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   because it seems to be unused.
 * (bug 7139) Increasing the visual width of the edit summary field on larger
   screen sizes, for the default monobook skin.
-
+* Fix PHP notice and estimates for dumpBackup.php and friends
 
 
 == Languages updated ==
index d40636a..8b4b672 100644 (file)
@@ -203,11 +203,11 @@ class BackupDumper {
         * Initialise starting time and maximum revision count.
         * We'll make ETA calculations based an progress, assuming relatively
         * constant per-revision rate.
-        * @param int $history MW_EXPORT_CURRENT or MW_EXPORT_FULL
+        * @param int $history WikiExporter::CURRENT or WikiExporter::FULL
         */
-       function initProgress( $history = MW_EXPORT_FULL ) {
-               $table = ($history == MW_EXPORT_CURRENT) ? 'page' : 'revision';
-               $field = ($history == MW_EXPORT_CURRENT) ? 'page_id' : 'rev_id';
+       function initProgress( $history = WikiExporter::FULL ) {
+               $table = ($history == WikiExporter::CURRENT) ? 'page' : 'revision';
+               $field = ($history == WikiExporter::CURRENT) ? 'page_id' : 'rev_id';
                
                $dbr =& wfGetDB( DB_SLAVE );
                $this->maxCount = $dbr->selectField( $table, "MAX($field)", '', 'BackupDumper::dump' );