r75775 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r75774‎ | r75775 | r75776 >
Date:02:41, 1 November 2010
Author:nad
Status:deferred
Tags:
Comment:
default to $wgEmailPageCss if it's set
Modified paths:
  • /trunk/extensions/EmailPage/EmailPage_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/EmailPage/EmailPage_body.php
@@ -127,7 +127,8 @@
128128 );
129129 while( $row = $db->fetchRow( $res ) ) {
130130 $t = Title::newFromID( $row[0] )->getPrefixedText();
131 - $selected = $t == $this->css ? ' selected' : '';
 131+ if( $this->css ) $selected = $t == $this->css ? ' selected' : '';
 132+ else $selected = $t == $wgEmailPageCss ? ' selected' : '';
132133 $options .= "<option$selected>$t</option>";
133134 }
134135 $db->freeResult( $res );

Status & tagging log