From 2d76fbf36fda94555b08463e1571221c63cc6f8e Mon Sep 17 00:00:00 2001 From: Huji Date: Fri, 22 Feb 2008 21:50:58 +0000 Subject: [PATCH] (bug 13115) rebuildrecentchanges should print the current value of $wgRCMaxAge --- RELEASE-NOTES | 1 + maintenance/rebuildrecentchanges.inc | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 75d22a31a6..fc38ec48a4 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -405,6 +405,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 13004) Fix error on Postgres searches that return too many results. * (bug 10677) Add link to the file description page on the shared repository * (bug 13084) Increase size of source/destination filename fields in upload form +* (bug 13115) rebuildrecentchanges should print the current value of $wgRCMaxAge == Parser changes in 1.12 == diff --git a/maintenance/rebuildrecentchanges.inc b/maintenance/rebuildrecentchanges.inc index 8b2c78053d..087c8dee0c 100644 --- a/maintenance/rebuildrecentchanges.inc +++ b/maintenance/rebuildrecentchanges.inc @@ -24,6 +24,15 @@ function rebuildRecentChangesTablePass1() print( "Loading from page and revision tables...\n" ); global $wgRCMaxAge; + + print( '$wgRCMaxAge=' . $wgRCMaxAge ); + $days = $wgRCMaxAge / 24 / 3600; + if ( intval($days) == $days ) { + print( " (" . $days . " days)\n" ); + } else { + print( " (approx. " . intval($days) . " days)\n" ); + } + $cutoff = time() - $wgRCMaxAge; $dbw->insertSelect( 'recentchanges', array( 'page', 'revision' ), array( -- 2.20.1