private function onUnSubscribe($boardid) { if (false !== ($error = $this->sanitize($boardid))) { return $error; } $userid = GWF_Session::getUserID(); if (false === GWF_ForumSubscrBoard::unsubscribe($userid, $boardid)) { return GWF_HTML::err('ERR_DATABASE', array(__FILE__, __LINE__)); } $href = htmlspecialchars($this->module->getMethodURL('Subscriptions')); return $this->module->message('msg_unsubscrboard', array($href)); }
public function canUnSubscribe() { return GWF_ForumSubscrBoard::hasSubscribed(GWF_Session::getUserID(), $this->getID()); }