Page MenuHomePhabricator

output.diff

Authored By
bzimport
Nov 21 2014, 8:38 PM
Size
732 B
Referenced Files
None
Subscribers
None

output.diff

Index: includes/OutputPage.php
===================================================================
--- includes/OutputPage.php (revision 14551)
+++ includes/OutputPage.php (working copy)
@@ -139,7 +139,7 @@
}
function getPageTitleActionText () {
- global $action;
+ global $action, $wgTitle;
switch($action) {
case 'edit':
case 'delete':
@@ -152,8 +152,12 @@
case 'history':
return wfMsg('history_short');
case 'submit':
- // FIXME: bug 2735; not correct for special pages etc
- return wfMsg('preview');
+ if ( $wgTitle->getNamespace() != NS_SPECIAL ) {
+ return wfMsg('preview');
+ }
+ else {
+ return '';
+ }
case 'info':
return wfMsg('info_short');
default:

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1719
Default Alt Text
output.diff (732 B)

Event Timeline