Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F2142
output.diff
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 8:38 PM
2014-11-21 20:38:46 (UTC+0)
Size
732 B
Referenced Files
None
Subscribers
None
output.diff
View Options
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
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1719
Default Alt Text
output.diff (732 B)
Attached To
Mode
T4735: "Preview" shown in title bar for action=submit on special pages (Watchlist)
Attached
Detach File
Event Timeline
Log In to Comment