Page MenuHomePhabricator

2241a.patch

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

2241a.patch

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

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1616
Default Alt Text
2241a.patch (888 B)

Event Timeline