From 8a1b7a1d1d0f644a49377e5eab6cf36327d9a073 Mon Sep 17 00:00:00 2001 From: Daniel Friesen Date: Sun, 3 Apr 2011 23:32:52 +0000 Subject: [PATCH] Add a getSkin that returns a dummy linker for BC with extensions still abusing it to access the linker. --- includes/parser/ParserOptions.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/includes/parser/ParserOptions.php b/includes/parser/ParserOptions.php index 9dfd34ad0f..56d6f7d18e 100644 --- a/includes/parser/ParserOptions.php +++ b/includes/parser/ParserOptions.php @@ -90,6 +90,16 @@ class ParserOptions { function getUser() { return $this->mUser; } function getPreSaveTransform() { return $this->mPreSaveTransform; } + /** + * @param $title Title + * @return Skin + * @deprecated Use Linker::* instead + */ + function getSkin( $title = null ) { + wfDeprecated( __METHOD__ ); + return new DummyLinker; + } + function getDateFormat() { $this->optionUsed('dateformat'); if ( !isset( $this->mDateFormat ) ) { -- 2.20.1