public function deleteComments($table_id, $table = 'gallery_items') { $shouts = new Shouts(); return $shouts->deleteShouts($table, $table_id); }
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, see <http://www.gnu.org/licenses/> or write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /** * list of comments + entry form from shouts controller * * * @package shouts * @subpackage template * @author Michael Dettbarn <*****@*****.**> */ $Shouts = new Shouts(); $callbackId = $Shouts->shoutProcess($table, $table_id); $vars =& PPostHandler::getVars($callbackId); $request = PRequest::get()->request; $login_url = 'login/' . htmlspecialchars(implode('/', $request), ENT_QUOTES); $commentsText = array(); $commentsError = array(); $i18n = new MOD_i18n('apps/blog/comments.php'); $commentsText = $i18n->getText('commentsText'); $commentsError = $i18n->getText('commentsError'); $i18n = new MOD_i18n('date.php'); $words = new MOD_words(); $format = array('short' => $words->getSilent('DateFormatShort')); if (!isset($vars['errors'])) { $vars['errors'] = array(); }