return $t;
} else {
wfProfileOut( $fname );
- return NULL;
+ $ret = NULL;
+ return $ret;
}
}
*/
function getArticleID( $flags = 0 ) {
global $wgLinkCache;
-
if ( $flags & GAID_FOR_UPDATE ) {
$oldUpdate = $wgLinkCache->forUpdate( true );
$this->mArticleID = $wgLinkCache->addLinkObj( $this );
$this->mArticleID = $wgLinkCache->addLinkObj( $this );
}
}
+wfdebug("title: articleid = ".$this->mArticleID."\n");
return $this->mArticleID;
}
while( $row = $dbw->fetchObject( $res ) ) {
$toucharr[] = $row->pl_from;
}
-
+ if (!count($toucharr))
+ return;
$dbw->update( 'page', /* SET */ array( 'page_touched' => $dbw->timestamp() ),
/* WHERE */ array( 'page_id' => $toucharr ),$fname);
}