Merge "Cast namespaceId to int in SpecialEditWatchlist::cleanupWatchlist"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 23 Mar 2016 21:55:54 +0000 (21:55 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 23 Mar 2016 21:55:54 +0000 (21:55 +0000)
includes/specials/SpecialEditWatchlist.php

index dd440b9..9c1f224 100644 (file)
@@ -414,7 +414,7 @@ class SpecialEditWatchlist extends UnlistedSpecialPage {
                        $action = $title ? 'cleaning up' : 'deleting';
                        wfDebug( "User {$user->getName()} has broken watchlist item ns($namespace):$dbKey, $action.\n" );
 
-                       $store->removeWatch( $user, new TitleValue( $namespace, $dbKey ) );
+                       $store->removeWatch( $user, new TitleValue( (int)$namespace, $dbKey ) );
 
                        // Can't just do an UPDATE instead of DELETE/INSERT due to unique index
                        if ( $title ) {