Index: trunk/extensions/EmailPage/EmailPage_body.php |
— | — | @@ -127,7 +127,8 @@ |
128 | 128 | ); |
129 | 129 | while( $row = $db->fetchRow( $res ) ) { |
130 | 130 | $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' : ''; |
132 | 133 | $options .= "<option$selected>$t</option>"; |
133 | 134 | } |
134 | 135 | $db->freeResult( $res ); |