Added EditFilterMerged hook: like EditFilter but uses the text after section merging...
[lhc/web/wiklou.git] / includes / ParserOptions.php
index efa3606..2200bfe 100644 (file)
@@ -3,7 +3,7 @@
 /**
  * Set options of the Parser
  * @todo document
- * @package MediaWiki
+ * @addtogroup Parser
  */
 class ParserOptions
 {
@@ -38,7 +38,7 @@ class ParserOptions
        function getMaxIncludeSize()                { return $this->mMaxIncludeSize; }
        function getRemoveComments()                { return $this->mRemoveComments; }
 
-       function &getSkin() {
+       function getSkin() {
                if ( !isset( $this->mSkin ) ) {
                        $this->mSkin = $this->mUser->getSkin();
                }
@@ -67,7 +67,7 @@ class ParserOptions
        function setMaxIncludeSize( $x )            { return wfSetVar( $this->mMaxIncludeSize, $x ); }
        function setRemoveComments( $x )            { return wfSetVar( $this->mRemoveComments, $x ); }
 
-       function ParserOptions( $user = null ) {
+       function __construct( $user = null ) {
                $this->initialiseFromUser( $user );
        }
 
@@ -116,4 +116,4 @@ class ParserOptions
        }
 }
 
-?>
+