From: Kunal Mehta Date: Tue, 14 Aug 2018 05:44:48 +0000 (-0700) Subject: Parser: Add accessors needed by CodeMirror X-Git-Tag: 1.34.0-rc.0~4457 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/modifier.php?a=commitdiff_plain;h=e8370d69779881d7f9a2baa0d9af64497c29df35;p=lhc%2Fweb%2Fwiklou.git Parser: Add accessors needed by CodeMirror Change-Id: Ia2d98baf6caed2cd779cb00aceba5785cf13d633 --- 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. *