convenient ParserOptions constructor
authorTim Starling <tstarling@users.mediawiki.org>
Sat, 28 May 2005 06:59:49 +0000 (06:59 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sat, 28 May 2005 06:59:49 +0000 (06:59 +0000)
includes/Parser.php

index 2927768..4dee7f2 100644 (file)
@@ -3213,6 +3213,11 @@ class ParserOptions
 
        function setSkin( &$x ) { $this->mSkin =& $x; }
 
+       function ParserOptions() {
+               global $wgUser;
+               $this->initialiseFromUser( $wgUser );
+       }
+
        /**
         * Get parser options
         * @static