mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CategoryTree
synced 2024-11-27 09:43:06 +00:00
Use namespaced classes
Changes to the use statements done automatically via script Addition of missing use statement done manually Change-Id: I51931c3aab6aa1e5bc77b3cc83b8014cf557ff75
This commit is contained in:
parent
aac8563280
commit
3e2ce8c6f4
|
@ -29,6 +29,7 @@ use MediaWiki\Category\Category;
|
|||
use MediaWiki\Config\Config;
|
||||
use MediaWiki\Context\IContextSource;
|
||||
use MediaWiki\Context\RequestContext;
|
||||
use MediaWiki\Extension\Translate\PageTranslation\TranslatablePage;
|
||||
use MediaWiki\Html\Html;
|
||||
use MediaWiki\Linker\LinkRenderer;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
|
@ -235,9 +236,9 @@ class CategoryTree {
|
|||
if ( $suppressTranslations ) {
|
||||
$title = Title::newFromRow( $row );
|
||||
$baseTitle = $title->getBaseTitle();
|
||||
$page = \TranslatablePage::isTranslationPage( $title );
|
||||
$page = TranslatablePage::isTranslationPage( $title );
|
||||
|
||||
if ( ( $page instanceof \TranslatablePage ) && $baseTitle->exists() ) {
|
||||
if ( ( $page instanceof TranslatablePage ) && $baseTitle->exists() ) {
|
||||
// T229265: Render only the default pages created and ignore their
|
||||
// translations.
|
||||
continue;
|
||||
|
|
|
@ -28,7 +28,6 @@ use MediaWiki\Config\Config;
|
|||
use MediaWiki\Context\RequestContext;
|
||||
use MediaWiki\Hook\CategoryViewer__doCategoryQueryHook;
|
||||
use MediaWiki\Hook\CategoryViewer__generateLinkHook;
|
||||
use MediaWiki\Hook\OutputPageMakeCategoryLinksHook;
|
||||
use MediaWiki\Hook\ParserFirstCallInitHook;
|
||||
use MediaWiki\Hook\SkinBuildSidebarHook;
|
||||
use MediaWiki\Hook\SpecialTrackingCategories__generateCatLinkHook;
|
||||
|
@ -36,6 +35,7 @@ use MediaWiki\Hook\SpecialTrackingCategories__preprocessHook;
|
|||
use MediaWiki\Html\Html;
|
||||
use MediaWiki\Linker\LinkRenderer;
|
||||
use MediaWiki\Linker\LinkTarget;
|
||||
use MediaWiki\Output\Hook\OutputPageMakeCategoryLinksHook;
|
||||
use MediaWiki\Output\OutputPage;
|
||||
use MediaWiki\Parser\Parser;
|
||||
use MediaWiki\Parser\Sanitizer;
|
||||
|
|
Loading…
Reference in a new issue