Avoid multiple writes to changetags table in recentchanges_save hook
authorcenarium <cenarium.sysop@gmail.com>
Fri, 23 Sep 2016 14:36:48 +0000 (16:36 +0200)
committercenarium <cenarium.sysop@gmail.com>
Tue, 27 Sep 2016 14:08:31 +0000 (16:08 +0200)
commit33389dd44c8f1bab79fe41aaa9e8318304aaf6e4
tree6016e8be8152f8a78604ec14396bc1af9d1c98d5
parent550ef848c738d654629ed6e8d0ef9b7511a9dc5d
Avoid multiple writes to changetags table in recentchanges_save hook

Currently, extensions that add tags within the recentchanges_save
hook directly call ChangeTags::addTags. This often results in
consecutive writes to the changetags table.
This provides a addTags method to RecentChange so extensions
can simply use it when they want a tag added. And all the actual
tagging is done once at the end.

Change-Id: I8df2fd983c12632337e8d2922fa357808482338c
includes/changes/RecentChange.php
includes/logging/LogEntry.php