From e8370d69779881d7f9a2baa0d9af64497c29df35 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Mon, 13 Aug 2018 22:44:48 -0700 Subject: [PATCH] Parser: Add accessors needed by CodeMirror Change-Id: Ia2d98baf6caed2cd779cb00aceba5785cf13d633 --- includes/parser/Parser.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 96bf89270b..b1e39286b8 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -5489,6 +5489,23 @@ class Parser { ); } + /** + * @since 1.32 + * @return array + */ + public function getFunctionSynonyms() { + $this->firstCallInit(); + return $this->mFunctionSynonyms; + } + + /** + * @since 1.32 + * @return string + */ + public function getUrlProtocols() { + return $this->mUrlProtocols; + } + /** * Replace transparent tags in $text with the values given by the callbacks. * -- 2.20.1