Do not load special pages in WatchedItem::load
authorumherirrender <umherirrender_de.wp@web.de>
Fri, 27 Dec 2013 13:49:56 +0000 (14:49 +0100)
committerUmherirrender <umherirrender_de.wp@web.de>
Sun, 12 Jan 2014 16:33:56 +0000 (16:33 +0000)
commit607449cb84e20c5b1035f4b6867b3d1ac6b26567
tree89f37dca4b7585f90425f876df1581204e90b4f4
parent6134bd4cd7b85f48d88e663a8a630e527ee5cfb3
Do not load special pages in WatchedItem::load

WatchedItem::load was looking for a special page in the database:
SELECT  wl_notificationtimestamp
  FROM `watchlist`
 WHERE wl_user = '1'
   AND wl_namespace = '-1'
   AND wl_title = 'Log'
 LIMIT 1
But it is known that such a page never will stay in the database,
so added a check to avoid the select.

Change-Id: I8c65328a32aa93c351ac476ce79d12d2835128f6
includes/WatchedItem.php