* Added a new accessor/mutator for OutputPage::mParserOptions and deprecated the...
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Wed, 21 Dec 2005 02:38:54 +0000 (02:38 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Wed, 21 Dec 2005 02:38:54 +0000 (02:38 +0000)
* KEYWORDS => keywords, as per W3C reccomendations

includes/OutputPage.php

index d75ba27..23cdd84 100644 (file)
@@ -230,7 +230,12 @@ class OutputPage {
        function getHTML() { return $this->mBodytext; }
        function debug( $text ) { $this->mDebugtext .= $text; }
 
+       /* @deprecated */
        function setParserOptions( $options ) {
+               return $this->ParserOptions( $options );
+       }
+
+       function ParserOptions( $options = null ) {
                return wfSetVar( $this->mParserOptions, $options );
        }
        
@@ -838,7 +843,7 @@ class OutputPage {
                );
                $a = htmlspecialchars(preg_replace(array_keys($strip), array_values($strip),$a ));
 
-               $wgOut->addMeta ( 'KEYWORDS' , $a ) ;
+               $wgOut->addMeta( 'keywords' , $a ) ;
        }
 
        /**