r12183 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r12182‎ | r12183 | r12184 >
Date:02:38, 21 December 2005
Author:avar
Status:old
Tags:
Comment:
* Added a new accessor/mutator for OutputPage::mParserOptions and deprecated the old one
* KEYWORDS => keywords, as per W3C reccomendations
Modified paths:
  • /trunk/phase3/includes/OutputPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/OutputPage.php
@@ -230,7 +230,12 @@
231231 function getHTML() { return $this->mBodytext; }
232232 function debug( $text ) { $this->mDebugtext .= $text; }
233233
 234+ /* @deprecated */
234235 function setParserOptions( $options ) {
 236+ return $this->ParserOptions( $options );
 237+ }
 238+
 239+ function ParserOptions( $options = null ) {
235240 return wfSetVar( $this->mParserOptions, $options );
236241 }
237242
@@ -838,7 +843,7 @@
839844 );
840845 $a = htmlspecialchars(preg_replace(array_keys($strip), array_values($strip),$a ));
841846
842 - $wgOut->addMeta ( 'KEYWORDS' , $a ) ;
 847+ $wgOut->addMeta( 'keywords' , $a ) ;
843848 }
844849
845850 /**

Follow-up revisions

RevisionCommit summaryAuthorDate
r79752More ancient deprecated functions:...happy-melon20:40, 6 January 2011

Status & tagging log