Topic on Extension talk:RecentChangesLogFilter

Necessary changes for MW-1.34+

1
Sm8ps (talkcontribs)

This extension is very useful to me and I was sad to find out that it seized to work after upgrading from MW-1.31 to 1.35. There is an open issue on the extension's Github page which suggests replacing DB_SLAVE by DB_REPLICA.

I can confirm that changing the following change in RecentChangesLogFilter.hooks.php (effectively replacing the first line which is commented out by the second one) makes the extension work fine on MW-1.35.

//$dbr = wfGetDB( DB_SLAVE );
$dbr = wfGetDB( DB_REPLICA );

It is quite weak to post this work-around as a comment instead of taking over maintainership of this seemingly orphaned extension. However, anything that goes beyond replacing these two lines is far beyond my knowledge of PHP. I would be very grateful if anybody would go about this in a more professional manner.

Reply to "Necessary changes for MW-1.34+"