Skip to content

Commit

Permalink
Fix the broken test
Browse files Browse the repository at this point in the history
(cherry picked from commit ce0bfcc)
(cherry picked from commit ebe0d9d)
(cherry picked from commit 77169c4)
  • Loading branch information
lens0021 committed Jun 13, 2021
1 parent 5916883 commit a2f5031
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
1 change: 1 addition & 0 deletions .github/workflows/dependencies
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
CategoryTree
Disambiguator
Wikibase
2 changes: 2 additions & 0 deletions .phan/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
$cfg['directory_list'],
[
'../../extensions/CategoryTree',
'../../extensions/Disambiguator',
'../../extensions/Wikibase',
]
);
Expand All @@ -14,6 +15,7 @@
$cfg['exclude_analysis_directory_list'],
[
'../../extensions/CategoryTree',
'../../extensions/Disambiguator',
'../../extensions/Wikibase',
]
);
Expand Down
10 changes: 0 additions & 10 deletions includes/Hooks/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace MediaWiki\Extension\UnifiedExtensionForFemiwiki\Hooks;

use Config;
use DisambiguatorHooks;
use Html;
use RequestContext;
use Skin;
Expand Down Expand Up @@ -183,13 +182,4 @@ public function onHtmlPageLinkRendererBegin( $linkRenderer, $target, &$text,

return false;
}

/**
* @param Title $title
* @return bool
*/
private static function isDisambiguationPage( Title $title ) {
return \ExtensionRegistry::getInstance()->isLoaded( 'Disambiguator' ) &&
DisambiguatorHooks::isDisambiguationPage( $title );
}
}
3 changes: 1 addition & 2 deletions includes/Hooks/RelatedArticlesHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace MediaWiki\Extension\UnifiedExtensionForFemiwiki\Hooks;

use Config;
use DisambiguatorHooks;
use ExtensionRegistry;
use MediaWiki\MediaWikiServices;
use Title;
Expand Down Expand Up @@ -40,7 +39,7 @@ public function __construct( Config $config, ILoadBalancer $loadBalancer ) {
*/
private static function isDisambiguationPage( Title $title ) {
return \ExtensionRegistry::getInstance()->isLoaded( 'Disambiguator' ) &&
DisambiguatorHooks::isDisambiguationPage( $title );
\MediaWiki\Extension\Disambiguator\Hooks::isDisambiguationPage( $title );
}

/**
Expand Down

0 comments on commit a2f5031

Please sign in to comment.