diff options
Diffstat (limited to 'MLEB/Translate/src/TranslatorSandbox/TranslationStashSpecialPage.php')
-rw-r--r-- | MLEB/Translate/src/TranslatorSandbox/TranslationStashSpecialPage.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/MLEB/Translate/src/TranslatorSandbox/TranslationStashSpecialPage.php b/MLEB/Translate/src/TranslatorSandbox/TranslationStashSpecialPage.php index 1915a0d5..ccf5e00e 100644 --- a/MLEB/Translate/src/TranslatorSandbox/TranslationStashSpecialPage.php +++ b/MLEB/Translate/src/TranslatorSandbox/TranslationStashSpecialPage.php @@ -59,7 +59,7 @@ class TranslationStashSpecialPage extends SpecialPage { $this->setHeaders(); $out = $this->getOutput(); - $this->stash = new TranslationStashStorage( wfGetDB( DB_MASTER ) ); + $this->stash = new TranslationStashStorage( wfGetDB( DB_PRIMARY ) ); if ( !$this->hasPermissionToUse() ) { if ( $secondaryPermissionUrl && $this->getUser()->isRegistered() ) { @@ -76,7 +76,7 @@ class TranslationStashSpecialPage extends SpecialPage { } $out->addJsConfigVars( 'wgTranslateSandboxLimit', $limit ); - $out->addModules( 'ext.translate.special.translationstash' ); + $out->addModules( 'ext.translate.specialTranslationStash' ); $out->addModuleStyles( 'mediawiki.ui.button' ); $this->showPage(); } @@ -202,5 +202,3 @@ HTML return Language::factory( $source->getCode() ); } } - -class_alias( TranslationStashSpecialPage::class, '\MediaWiki\Extensions\Translate\TranslationStashSpecialPage' ); |