Index: trunk/extensions/Wikilog/WikilogItemPager.php |
— | — | @@ -441,7 +441,7 @@ |
442 | 442 | $value = isset( $row->$field ) ? $row->$field : null; |
443 | 443 | $formatted = strval( $this->formatValue( $field, $value ) ); |
444 | 444 | if ( $formatted == '' ) { |
445 | | - $formatted = ' '; |
| 445 | + $formatted = WL_NBSP; |
446 | 446 | } |
447 | 447 | $class = 'TablePager_col_' . htmlspecialchars( $field ); |
448 | 448 | $columns[] = "<td class=\"$class\">$formatted</td>"; |
Index: trunk/extensions/Wikilog/Wikilog.php |
— | — | @@ -42,6 +42,15 @@ |
43 | 43 | ); |
44 | 44 | |
45 | 45 | /* |
| 46 | + * Constant definitions. |
| 47 | + */ |
| 48 | +// For source-code readability. This ought to be defined by MediaWiki (and |
| 49 | +// there is actually such a definition in DifferenceEngine.php, but it is |
| 50 | +// not global). So, it is easier to have our own until MediaWiki provides |
| 51 | +// one globally. It also allows us to keep compatibility. |
| 52 | +define( 'WL_NBSP', ' ' ); |
| 53 | + |
| 54 | +/* |
46 | 55 | * Dependencies. |
47 | 56 | */ |
48 | 57 | require_once( dirname( __FILE__ ) . '/WlFeed.php' ); |
Index: trunk/extensions/Wikilog/WikilogCommentsPage.php |
— | — | @@ -355,7 +355,7 @@ |
356 | 356 | } |
357 | 357 | |
358 | 358 | $fields[] = array( '', |
359 | | - Xml::submitbutton( wfMsg( 'wikilog-submit' ), array( 'name' => 'wlActionCommentSubmit' ) ) . ' ' . |
| 359 | + Xml::submitbutton( wfMsg( 'wikilog-submit' ), array( 'name' => 'wlActionCommentSubmit' ) ) . WL_NBSP . |
360 | 360 | Xml::submitbutton( wfMsg( 'wikilog-preview' ), array( 'name' => 'wlActionCommentPreview' ) ) |
361 | 361 | ); |
362 | 362 | |
Index: trunk/extensions/Wikilog/WikilogHooks.php |
— | — | @@ -301,7 +301,7 @@ |
302 | 302 | Xml::check( 'wlSignpub', $checked, array( |
303 | 303 | 'id' => 'wl-signpub', |
304 | 304 | 'tabindex' => 1, // after text, before summary |
305 | | - ) ) . ' ' . |
| 305 | + ) ) . WL_NBSP . |
306 | 306 | Xml::element( 'label', array( |
307 | 307 | 'for' => 'wl-signpub', |
308 | 308 | 'title' => $tooltip, |