Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F2039
2241a.patch
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:29 PM
2014-11-21 20:29:45 (UTC+0)
Size
888 B
Referenced Files
None
Subscribers
None
2241a.patch
View Options
Index: includes/SkinTemplate.php
===================================================================
--- includes/SkinTemplate.php (revision 15999)
+++ includes/SkinTemplate.php (working copy)
@@ -716,8 +716,13 @@
}
wfProfileOut( "$fname-live" );
- if( $this->loggedin ) {
+ /* If the user edits the article, then loads "watch this article" in background, and then
+ saves the article with "Watch this article" checkbox disabled, the article is transparently
+ unwatched. Therefore we do not show the "Watch this page" link in edit mode. Also avoids
+ accesskey conflict. */
+
+ if( $this->loggedin && $action != 'edit' && $action != 'submit' ) {
if( !$this->mTitle->userIsWatching() ) {
$content_actions['watch'] = array(
'class' => ($action == 'watch' or $action == 'unwatch') ? 'selected' : false,
'text' => wfMsg('watch'),
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1616
Default Alt Text
2241a.patch (888 B)
Attached To
Mode
T4241: Colliding duplicate use of 'w' and 'd' shortcut keys
Attached
Detach File
Event Timeline
Log In to Comment