mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Thanks
synced 2024-11-15 02:54:23 +00:00
Merge "Replace usage of deprecated Page in favor of WikiPage/Article"
This commit is contained in:
commit
d595a4f478
|
@ -167,11 +167,11 @@ class ThanksHooks {
|
|||
/**
|
||||
* Handler for PageHistoryBeforeList hook.
|
||||
* @see https://www.mediawiki.org/wiki/Manual:Hooks/PageHistoryBeforeList
|
||||
* @param WikiPage|Article|ImagePage|CategoryPage|Page &$page The page for which the history
|
||||
* is loading.
|
||||
*
|
||||
* @param WikiPage|Article|ImagePage|CategoryPage $page Not used
|
||||
* @param RequestContext $context RequestContext object
|
||||
*/
|
||||
public static function onPageHistoryBeforeList( &$page, $context ) {
|
||||
public static function onPageHistoryBeforeList( $page, $context ) {
|
||||
if ( $context->getUser()->isLoggedIn() ) {
|
||||
static::addThanksModule( $context->getOutput() );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue