ParserOptions: Remove setters for magic links options
authorKunal Mehta <legoktm@member.fsf.org>
Wed, 14 Sep 2016 18:12:14 +0000 (11:12 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Wed, 14 Sep 2016 18:12:14 +0000 (11:12 -0700)
commita37ab7f4c46fdade705f9745c11bfb714cd3717e
tree1dbca2466d15463d113287aa252278d1de8ff1bf
parent8ddc4bea699c3a23524aba018420738350d570c7
ParserOptions: Remove setters for magic links options

This will allow clients to assume that the global configuration state
($wgEnableMagicLinks) is the same as the state in ParserOptions, fixing
some consistency issues in wfEscapeWikiText() and Scribunto. The
abstraction for the ParserOptions getters is still useful because it
keeps the global state out of the Parser.

Change-Id: Ic2c447443963eb336c786cacf9dfd041a2df3b77
includes/parser/ParserOptions.php