Extension talk:Recent Changes Cleanup
Contents
| Thread title | Replies | Last modified |
|---|---|---|
| Special page bug | 3 | 23:49, 12 May 2013 |
| Access to the SpecialPage as Sysop | 1 | 22:45, 9 September 2012 |
| Lol | 1 | 03:57, 8 December 2011 |
| Stopped working with an update to 1.18.0 | 2 | 03:56, 8 December 2011 |
On the special-page, one of the comments, concerning the creation of a new page, contained some html code, that broke the layout. (it contained <table> ...)
Sending the text (comments, titles etc.) through the htmlspecialchars() fixes this.
BTW this plug-in is working fine with MediaWiki v1.19.0 and v1.19.1
Happened to me to. This is an annoying bug because the site layout is completely missing on that page now. Hope it gets fixed eventually?
Working in MediaWiki v1.20
My version, including the group permission by 213.196.170.72 and displaying 250 items per page (default 100)
Or do it manually by editing the last lines of RecentChangesCleanup_body.php
$wgOut->addHTML('<td>' . $rc_user_text . '</td>' . '<td>' . $rc_title . '</td>' . '<td>' . htmlspecialchars($rc_comment) . ' </td>' . '</tr>');
}
$wgOut->addHTML('</table>');
$dbr->freeResult($res);
}
// function execute
} // class
?>
We had the little problem that this extension only checks if someone has more than 500 edits, an administrator (sysop) is not able to access the special page. We solved it by this little change:
In the File RecentChangesCleanup_body.php change the Line 21 to Line 25:
if ( !($edit_count > $min_edit_count || $wgUser->isAllowed( 'recentchangescleanup' ))) { $wgOut->addHTML('<br>Access to this maintenance related page is limited to editors with atleast ' . $min_edit_count . ' edits or with RecentChangesCleanup right' ); return; }
And add following line to your extension settings (often your LocalSettings.php)
$wgGroupPermissions['sysop']['recentchangescleanup'] = true;
I just wrote a plugin that does effectively the same but actually deletes the Recent Changes entry from the database. On trying to create a page for it (with the exact same title as your plugin) I found out about this plugin... Your solution is so much cleaner I'll just abandon mine. Thanks for the plugin!
With the recent update to v1.18.0 this plug-in stopped working for me. The special page doesn't load and the description-field contains just: <RecentChangesCleanup-desc>