http://www.mediawiki.org/wiki/Special:Code/MediaWiki/54795

Revision: 54795
Author:   btongminh
Date:     2009-08-11 18:03:35 +0000 (Tue, 11 Aug 2009)

Log Message:
-----------
(bug 20052) Watch checkbox on Special:Movepage is checked by default when the 
old or new page is being watched.

Modified Paths:
--------------
    trunk/phase3/RELEASE-NOTES
    trunk/phase3/includes/specials/SpecialMovepage.php

Modified: trunk/phase3/RELEASE-NOTES
===================================================================
--- trunk/phase3/RELEASE-NOTES  2009-08-11 17:50:03 UTC (rev 54794)
+++ trunk/phase3/RELEASE-NOTES  2009-08-11 18:03:35 UTC (rev 54795)
@@ -197,6 +197,8 @@
    output by omitting some things like quotation marks where HTML 5 allows.
 * Added crop for inline images.
 * The description message in $wgExtensionCredits can be an array with 
parameters
+* (bug 20052) Watch checkbox on Special:Movepage is checked by default when the
+  old or new page is being watched.
 
 === Bug fixes in 1.16 ===
 

Modified: trunk/phase3/includes/specials/SpecialMovepage.php
===================================================================
--- trunk/phase3/includes/specials/SpecialMovepage.php  2009-08-11 17:50:03 UTC 
(rev 54794)
+++ trunk/phase3/includes/specials/SpecialMovepage.php  2009-08-11 18:03:35 UTC 
(rev 54795)
@@ -277,8 +277,11 @@
                        );
                }
 
+               # Check the watch checkbox in case the watch parameter was 
given in the 
+               # request, the preferences say so, or either the old or new 
title is 
+               # being watched.
                $watchChecked = $this->watch || $wgUser->getBoolOption( 
'watchmoves' ) 
-                       || $this->oldTitle->userIsWatching();
+                       || $this->oldTitle->userIsWatching() || 
$this->newTitle->userIsWatching();
                $wgOut->addHTML( "
                        <tr>
                                <td></td>



_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to