Hello,
where could I change the periods (number of days) for RecentChanges? In MW 1.9.3 there's this standard setting:
Show last 50 | 100 | 250 | 500 changes in last 1 | 3 | 7 | 14 | 30 days
I would like to change/extend the number of days.
Thanks for any help, Peter
Hi Peter,
there's a bug concerning the number of days for RecentChanges (which will be corrected in the next version), so you need to hack the code and make the following changes:
In [your-wiki-directory]/includes/SpecialPreferences.php change the following line:
$wgUser->setOption( 'rcdays', $this->validateInt( $this->mRecentDays, 1, 7 ) );
to these two lines:
global $wgRCMaxAge; $wgUser->setOption( 'rcdays', $this->validateInt($this->mRecentDays, 1,ceil($wgRCMaxAge / (3600*24))));
In [your-wiki-directory]/LocalSettings.php add this line: $wgRCMaxAge = 100 * 24 * 3600;
Then you can enter up to 100 days in your User-Preferences.
I do not know how or if you can change the values on the RecentChanges-Page though.
Good luck!
Peter Velan schrieb:
Hello,
where could I change the periods (number of days) for RecentChanges? In MW 1.9.3 there's this standard setting:
Show last 50 | 100 | 250 | 500 changes in last 1 | 3 | 7 | 14 | 30 days
I would like to change/extend the number of days.
Thanks for any help, Peter
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
am 03.01.2008 12:54 schrieb Katharina Wolkwitz:
Hi Peter,
Hi Katharina, thank you for your thoughts ...
there's a bug concerning the number of days for RecentChanges (which will be corrected in the next version), so you need to hack the code and make the following changes:
In [your-wiki-directory]/includes/SpecialPreferences.php change the following line:
$wgUser->setOption( 'rcdays', $this->validateInt( $this->mRecentDays, 1, 7 ) );
... but here I'm out of luck. Above code line is not in my version of MW 1.9.3. I suspect its from a more actual version of MW than mine (its time to bring my MW up to date).
Cheers, Peter
mediawiki-l@lists.wikimedia.org