* @ingroup Watchlist
*/
class WatchedItem {
- var $mTitle, $mUser, $id, $gr, $ns, $ti;
+ var $mTitle, $mUser, $id, $ns, $ti;
private $loaded = false, $watched, $timestamp;
/**
* @param $title Title: the title we're going to (un)watch
* @return WatchedItem object
*/
- public static function fromUserTitle( $user, $title, $group = 0 ) {
+ public static function fromUserTitle( $user, $title ) {
$wl = new WatchedItem;
$wl->mUser = $user;
$wl->mTitle = $title;
$wl->ns = $title->getNamespace();
$wl->ti = $title->getDBkey();
-
- $wl->gr = $group;
return $wl;
}
$dbw->insert( 'watchlist',
array(
'wl_user' => $this->id,
- 'wl_group' => $this->gr,
'wl_namespace' => MWNamespace::getSubject($this->ns),
'wl_title' => $this->ti,
'wl_notificationtimestamp' => null
$dbw->insert( 'watchlist',
array(
'wl_user' => $this->id,
- 'wl_group' => $this->gr,
'wl_namespace' => MWNamespace::getTalk($this->ns),
'wl_title' => $this->ti,
'wl_notificationtimestamp' => null