From: Ævar Arnfjörð Bjarmason Date: Wed, 21 Dec 2005 02:38:54 +0000 (+0000) Subject: * Added a new accessor/mutator for OutputPage::mParserOptions and deprecated the... X-Git-Tag: 1.6.0~917 X-Git-Url: http://git.cyclocoop.org/%22.htmlspecialchars%28%24url_syndic%29.%22?a=commitdiff_plain;h=42d8f43913872ebc48ed91e0e7f517c679044f31;p=lhc%2Fweb%2Fwiklou.git * Added a new accessor/mutator for OutputPage::mParserOptions and deprecated the old one * KEYWORDS => keywords, as per W3C reccomendations --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index d75ba27b0a..23cdd84fbc 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -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 ) ; } /**