From: Huji Date: Fri, 22 Feb 2008 21:50:58 +0000 (+0000) Subject: (bug 13115) rebuildrecentchanges should print the current value of $wgRCMaxAge X-Git-Tag: 1.31.0-rc.0~49392 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22suivi_revisions%22%29%20.%20%22?a=commitdiff_plain;h=2d76fbf36fda94555b08463e1571221c63cc6f8e;p=lhc%2Fweb%2Fwiklou.git (bug 13115) rebuildrecentchanges should print the current value of $wgRCMaxAge --- 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(