mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Thanks
synced 2024-11-15 10:59:42 +00:00
Merge "Hooks: Update to use DifferenceEngineViewHeader
"
This commit is contained in:
commit
35126a705b
|
@ -178,7 +178,7 @@
|
|||
"BeforePageDisplay": "ThanksHooks::onBeforePageDisplay",
|
||||
"BeforeSpecialMobileDiffDisplay": "ThanksHooks::onBeforeSpecialMobileDiffDisplay",
|
||||
"DiffTools": "ThanksHooks::insertThankLink",
|
||||
"DiffViewHeader": "ThanksHooks::onDiffViewHeader",
|
||||
"DifferenceEngineViewHeader": "ThanksHooks::onDifferenceEngineViewHeader",
|
||||
"EchoGetBundleRules": "ThanksHooks::onEchoGetBundleRules",
|
||||
"EchoGetDefaultNotifiedUsers": "ThanksHooks::onEchoGetDefaultNotifiedUsers",
|
||||
"GetLogTypesOnUser": "ThanksHooks::onGetLogTypesOnUser",
|
||||
|
|
|
@ -170,13 +170,11 @@ class ThanksHooks {
|
|||
}
|
||||
|
||||
/**
|
||||
* Handler for DiffViewHeader hook.
|
||||
* @see https://www.mediawiki.org/wiki/Manual:Hooks/DiffViewHeader
|
||||
* Handler for DifferenceEngineViewHeader hook.
|
||||
* @see https://www.mediawiki.org/wiki/Manual:Hooks/DifferenceEngineViewHeader
|
||||
* @param DifferenceEngine $diff DifferenceEngine object that's calling.
|
||||
* @param Revision $oldRev Revision object of the "old" revision (may be null/invalid)
|
||||
* @param Revision $newRev Revision object of the "new" revision
|
||||
*/
|
||||
public static function onDiffViewHeader( $diff, $oldRev, $newRev ) {
|
||||
public static function onDifferenceEngineViewHeader( $diff ) {
|
||||
if ( $diff->getUser()->isLoggedIn() ) {
|
||||
static::addThanksModule( $diff->getOutput() );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue