From 6c8b27fae64ee0a9ee2dbd72ef71d205a653707c Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 11 Oct 2006 17:58:42 +0000 Subject: [PATCH] * Fix PHP notice and estimates for dumpBackup.php and friends --- RELEASE-NOTES | 2 +- maintenance/backup.inc | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index a0e109b33f..119c6d7ce4 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 == diff --git a/maintenance/backup.inc b/maintenance/backup.inc index d40636a6f3..8b4b672672 100644 --- a/maintenance/backup.inc +++ b/maintenance/backup.inc @@ -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' ); -- 2.20.1