From d22bea9ab7ba75df9b4529f5ae42a40f60f8f110 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sat, 28 May 2005 06:59:49 +0000 Subject: [PATCH] convenient ParserOptions constructor --- includes/Parser.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/includes/Parser.php b/includes/Parser.php index 2927768448..4dee7f277f 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -3213,6 +3213,11 @@ class ParserOptions function setSkin( &$x ) { $this->mSkin =& $x; } + function ParserOptions() { + global $wgUser; + $this->initialiseFromUser( $wgUser ); + } + /** * Get parser options * @static -- 2.20.1