r61134 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r61133‎ | r61134 | r61135 >
Date:16:28, 16 January 2010
Author:demon
Status:ok
Tags:
Comment:
Drop ancient 1.6 and below compat. This is why we branch :)
Modified paths:
  • /trunk/extensions/Poem/Poem.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Poem/Poem.php
@@ -71,14 +71,7 @@
7272 $text = $ret->getText();
7373 }
7474
75 - global $wgVersion;
76 - if( version_compare( $wgVersion, "1.7alpha" ) >= 0 ) {
77 - // Pass HTML attributes through to the output.
78 - $attribs = Sanitizer::validateTagAttributes( $param, 'div' );
79 - } else {
80 - // Can't guarantee safety on 1.6 or older.
81 - $attribs = array();
82 - }
 75+ $attribs = Sanitizer::validateTagAttributes( $param, 'div' );
8376
8477 // Wrap output in a <div> with "poem" class.
8578 if( isset( $attribs['class'] ) ) {

Status & tagging log