-<?
+<?php
class WatchedItem {
global $wgMemc;
$key = $this->watchKey();
$iswatched = $wgMemc->get( $key );
- if( is_scalar( $iswatched ) ) return $iswatched;
+ if( is_integer( $iswatched ) ) return $iswatched;
$sql = "SELECT 1 FROM watchlist WHERE wl_user=$this->id AND wl_namespace=$this->ns AND wl_title='$this->eti'";
$res = wfQuery( $sql, DB_READ );
}
/* static */ function duplicateEntries( $ot, $nt ) {
+ $fname = "WatchedItem::duplicateEntries";
global $wgMemc, $wgDBname;
$oldnamespace = $ot->getNamespace() & ~1;
$newnamespace = $nt->getNamespace() & ~1;