From: Brian Wolff Date: Mon, 2 Dec 2013 19:30:40 +0000 (-0400) Subject: Add missing subjectspace pages to watchlist on update. X-Git-Tag: 1.31.0-rc.0~17510^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=commitdiff_plain;h=5676411710fc8c75ab49386c2ed7d456de5b71da;p=lhc%2Fweb%2Fwiklou.git Add missing subjectspace pages to watchlist on update. Previously this only fixed the other direction, if a talk page was missing, but it still complained for missing subject pages. Discovered by Joergi on irc Change-Id: I439eb0c4a74260157f9542470f01f189fe9081c5 --- diff --git a/includes/installer/MysqlUpdater.php b/includes/installer/MysqlUpdater.php index cc5313a8f0..ffa49005d1 100644 --- a/includes/installer/MysqlUpdater.php +++ b/includes/installer/MysqlUpdater.php @@ -390,6 +390,16 @@ class MysqlUpdater extends DatabaseUpdater { 'wl_notificationtimestamp' => 'wl_notificationtimestamp' ), array( 'NOT (wl_namespace & 1)' ), __METHOD__, 'IGNORE' ); $this->output( "done.\n" ); + + $this->output( "Adding missing watchlist subject page rows... " ); + $this->db->insertSelect( 'watchlist', 'watchlist', + array( + 'wl_user' => 'wl_user', + 'wl_namespace' => 'wl_namespace & ~1', + 'wl_title' => 'wl_title', + 'wl_notificationtimestamp' => 'wl_notificationtimestamp' + ), array( 'wl_namespace & 1' ), __METHOD__, 'IGNORE' ); + $this->output( "done.\n" ); } function doSchemaRestructuring() {