From 42d8f43913872ebc48ed91e0e7f517c679044f31 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Wed, 21 Dec 2005 02:38:54 +0000 Subject: [PATCH] * Added a new accessor/mutator for OutputPage::mParserOptions and deprecated the old one * KEYWORDS => keywords, as per W3C reccomendations --- includes/OutputPage.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 ) ; } /** -- 2.20.1