Bug 35601 — Watchlist doesn't show or count pages not in the main
authorMark A. Hershberger <mah@everybody.org>
Mon, 9 Apr 2012 15:07:34 +0000 (11:07 -0400)
committerMark A. Hershberger <mah@everybody.org>
Mon, 9 Apr 2012 18:07:27 +0000 (14:07 -0400)
namespace when deleting them from the watchlist

Fix with array_merge.

Change-Id: I8055467a018f6eee6d55419576648e5a5fac0632

includes/specials/SpecialEditWatchlist.php

index 296c98f..fa48317 100644 (file)
@@ -273,7 +273,7 @@ class SpecialEditWatchlist extends UnlistedSpecialPage {
         *
         * @param Title $title
         * @param int $namespace
-        * @param String $dbKey 
+        * @param String $dbKey
         * @return bool: Whether this item is valid
         */
        private function checkTitle( $title, $namespace, $dbKey ) {
@@ -409,7 +409,7 @@ class SpecialEditWatchlist extends UnlistedSpecialPage {
 
                foreach( $data as $titles ) {
                        $this->unwatchTitles( $titles );
-                       $removed += $titles;
+                       $removed = array_merge( $removed, $titles );
                }
 
                if( count( $removed ) > 0 ) {