/** * @param $key * @return string */ function pi_getLL($key) { return $this->pObj->pi_getLL($key); }
/** * Removes a topic from a user's list of email subscriptions. * * @param tx_mmforum_pi1 $forumObj The plugin object * @return string An error message in case the redirect attempt to * the previous page fails. */ static function delete($forumObj) { $feUserId = intval($GLOBALS['TSFE']->fe_user->user['uid']); $forumId = intval($forumObj->piVars['fid']); // Executing database operations $GLOBALS['TYPO3_DB']->exec_DELETEquery('tx_mmforum_forummail', 'user_id = ' . $feUserId . ' AND forum_id = ' . $forumId . $forumObj->getStoragePIDQuery()); // Redirecting visitor back to previous page $forumObj->redirectToReferrer(); return $forumObj->pi_getLL('subscr.delSuccess') . '<br />' . $forumObj->pi_getLL('redirect.error') . '<br />'; }