Use ::class for class name resolution
Available since php5.5 Change-Id: Ie71b7f9d289a34532f6e3e1f32ac25bf08b9903f
This commit is contained in:
@@ -69,7 +69,7 @@ class UniversalLanguageSelectorHooks {
|
||||
if ( $wgULSCompactLanguageLinksBetaFeature === true &&
|
||||
$wgInterwikiMagic === true &&
|
||||
$wgHideInterlanguageLinks === false &&
|
||||
class_exists( 'BetaFeatures' ) &&
|
||||
class_exists( BetaFeatures::class ) &&
|
||||
BetaFeatures::isFeatureEnabled( $user, 'uls-compact-links' )
|
||||
) {
|
||||
// Compact language links is a beta feature in this wiki. Check the user's
|
||||
|
||||
@@ -156,5 +156,5 @@ PHP;
|
||||
}
|
||||
}
|
||||
|
||||
$maintClass = 'LanguageNameIndexer';
|
||||
$maintClass = LanguageNameIndexer::class;
|
||||
require_once RUN_MAINTENANCE_IF_MAIN;
|
||||
|
||||
@@ -117,5 +117,5 @@ class ULSCompactLinksDisablePref extends Maintenance {
|
||||
}
|
||||
}
|
||||
|
||||
$maintClass = "ULSCompactLinksDisablePref";
|
||||
$maintClass = ULSCompactLinksDisablePref::class;
|
||||
require_once RUN_MAINTENANCE_IF_MAIN;
|
||||
|
||||
Reference in New Issue
Block a user