X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FDummyLinker.php;h=00d66bf13c717dce725b2f6bef588355f7fd8bad;hb=98f9cfd93f77150c5a8dac5e266386d977c748b9;hp=fc94a63b747b589450540b78ad1cce0dfa78701f;hpb=59e7337ea612d03d08b67e6ada707e3d7ced738d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/DummyLinker.php b/includes/DummyLinker.php index fc94a63b74..00d66bf13c 100644 --- a/includes/DummyLinker.php +++ b/includes/DummyLinker.php @@ -5,56 +5,6 @@ */ class DummyLinker { - /** - * @deprecated since 1.27 - */ - public function getInterwikiLinkAttributes( $title, $unused = null, $class = 'external' ) { - wfDeprecated( __METHOD__, '1.27' ); - return Linker::getInterwikiLinkAttributes( - $title, - $unused, - $class - ); - } - - /** - * @deprecated since 1.27 - */ - public function getInternalLinkAttributes( $title, $unused = null, $class = '' ) { - wfDeprecated( __METHOD__, '1.27' ); - return Linker::getInternalLinkAttributes( - $title, - $unused, - $class - ); - } - - /** - * @deprecated since 1.27 - */ - public function getInternalLinkAttributesObj( - $nt, - $unused = null, - $class = '', - $title = false - ) { - wfDeprecated( __METHOD__, '1.27' ); - return Linker::getInternalLinkAttributesObj( - $nt, - $unused, - $class, - $title - ); - } - - /** - * @deprecated since 1.28, use LinkRenderer::getLinkClasses() instead - */ - public function getLinkColour( $t, $threshold ) { - wfDeprecated( __METHOD__, '1.28' ); - return Linker::getLinkColour( $t, $threshold ); - } - public function link( $target, $html = null, @@ -149,7 +99,7 @@ class DummyLinker { Title $title, $file, $label = '', - $alt, + $alt = '', $align = 'right', $params = [], $framed = false, @@ -395,11 +345,11 @@ class DummyLinker { return Linker::tocLineEnd(); } - public function tocList( $toc, $lang = false ) { + public function tocList( $toc, Language $lang = null ) { return Linker::tocList( $toc, $lang ); } - public function generateTOC( $tree, $lang = false ) { + public function generateTOC( $tree, Language $lang = null ) { return Linker::generateTOC( $tree, $lang ); } @@ -453,38 +403,10 @@ class DummyLinker { ); } - /** - * @deprecated since 1.28, use TemplatesOnThisPageFormatter directly - */ - public function formatTemplates( - $templates, - $preview = false, - $section = false, - $more = null - ) { - wfDeprecated( __METHOD__, '1.28' ); - - return Linker::formatTemplates( - $templates, - $preview, - $section, - $more - ); - } - public function formatHiddenCategories( $hiddencats ) { return Linker::formatHiddenCategories( $hiddencats ); } - /** - * @deprecated since 1.28, use Language::formatSize() directly - */ - public function formatSize( $size ) { - wfDeprecated( __METHOD__, '1.28' ); - - return Linker::formatSize( $size ); - } - public function titleAttrib( $name, $options = null, array $msgParams = [] ) { return Linker::titleAttrib( $name,