Per Nikerabbit, fix for r92231: this was the wrong object
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 27 Aug 2011 20:59:28 +0000 (20:59 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 27 Aug 2011 20:59:28 +0000 (20:59 +0000)
includes/specials/SpecialEditWatchlist.php

index 832d0c7..78255e9 100644 (file)
@@ -150,7 +150,7 @@ class SpecialEditWatchlist extends UnlistedSpecialPage {
                        }
                } else {
                        $this->clearWatchlist();
-                       $this->getLang()->invalidateCache();
+                       $this->getUser()->invalidateCache();
                        $this->successMessage .= wfMessage(
                                'watchlistedit-raw-removed',
                                $this->getLang()->formatNum( count( $current ) )