X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FOutputPage.php;h=c45fce7a9d6773d30f3e764d5493c0a876260ee4;hb=acb2456200d01371bd30ba72b5fc5ebd280d3386;hp=3e91fb346cf5511257552960e7a45b2f25f79461;hpb=ce44cc9d5b6716ce7179cdd67184518c2c10e959;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 3e91fb346c..c45fce7a9d 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -548,15 +548,6 @@ class OutputPage extends ContextSource { $this->mModules = array_merge( $this->mModules, (array)$modules ); } - /** - * @deprecated since 1.33 Use getModules() instead. - * @return array - */ - public function getModuleScripts() { - wfDeprecated( __METHOD__, '1.33' ); - return []; - } - /** * Get the list of style-only modules to load on this page. * @@ -2998,46 +2989,6 @@ class OutputPage extends ContextSource { $this->addHTML( $message ); } - /** - * @deprecated 1.32 Use OutputPage::showFatalError or throw FatalError instead. - */ - public function showUnexpectedValueError( $name, $val ) { - wfDeprecated( __METHOD__, '1.32' ); - $this->showFatalError( $this->msg( 'unexpected', $name, $val )->escaped() ); - } - - /** - * @deprecated 1.32 Use OutputPage::showFatalError or throw FatalError instead. - */ - public function showFileCopyError( $old, $new ) { - wfDeprecated( __METHOD__, '1.32' ); - $this->showFatalError( $this->msg( 'filecopyerror', $old, $new )->escaped() ); - } - - /** - * @deprecated 1.32 Use OutputPage::showFatalError or throw FatalError instead. - */ - public function showFileRenameError( $old, $new ) { - wfDeprecated( __METHOD__, '1.32' ); - $this->showFatalError( $this->msg( 'filerenameerror', $old, $new )->escaped() ); - } - - /** - * @deprecated 1.32 Use OutputPage::showFatalError or throw FatalError instead. - */ - public function showFileDeleteError( $name ) { - wfDeprecated( __METHOD__, '1.32' ); - $this->showFatalError( $this->msg( 'filedeleteerror', $name )->escaped() ); - } - - /** - * @deprecated 1.32 Use OutputPage::showFatalError or throw FatalError instead. - */ - public function showFileNotFoundError( $name ) { - wfDeprecated( __METHOD__, '1.32' ); - $this->showFatalError( $this->msg( 'filenotfound', $name )->escaped() ); - } - /** * Add a "return to" link pointing to a specified title * @@ -3430,8 +3381,9 @@ class OutputPage extends ContextSource { $title = $this->getTitle(); $ns = $title->getNamespace(); - $canonicalNamespace = MWNamespace::exists( $ns ) - ? MWNamespace::getCanonicalName( $ns ) + $nsInfo = MediaWikiServices::getInstance()->getNamespaceInfo(); + $canonicalNamespace = $nsInfo->exists( $ns ) + ? $nsInfo->getCanonicalName( $ns ) : $title->getNsText(); $sk = $this->getSkin(); @@ -4230,16 +4182,6 @@ class OutputPage extends ContextSource { wfDeprecated( __METHOD__, '1.31' ); } - /** - * @return bool - * @since 1.23 - * @deprecated since 1.31, use $poOptions to addParserOutput() instead. - */ - public function sectionEditLinksEnabled() { - wfDeprecated( __METHOD__, '1.31' ); - return true; - } - /** * Helper function to setup the PHP implementation of OOUI to use in this request. *