(bug 23167) Check the watch checkbox by default if the watchcreations preference...
authorBryan Tong Minh <btongminh@users.mediawiki.org>
Mon, 12 Apr 2010 10:40:03 +0000 (10:40 +0000)
committerBryan Tong Minh <btongminh@users.mediawiki.org>
Mon, 12 Apr 2010 10:40:03 +0000 (10:40 +0000)
includes/specials/SpecialUpload.php

index d33ffd1..cf3c1f9 100644 (file)
@@ -943,6 +943,7 @@ class UploadForm extends HTMLForm {
                                        'id' => 'wpWatchthis',
                                        'label-message' => 'watchthisupload',
                                        'section' => 'options',
+                                       'default' => $wgUser->getOption( 'watchcreations' ),
                                )
                        );
                }