From 8981ca9ceed1cb4ed90847b4be4605171b98ca17 Mon Sep 17 00:00:00 2001 From: Antonin Date: Tue, 3 May 2016 21:12:04 +0200 Subject: [PATCH] Removing specification of error reporting in actions --- action/add_comment.php | 1 - action/send_edit_link_by_email_action.php | 2 -- 2 files changed, 3 deletions(-) diff --git a/action/add_comment.php b/action/add_comment.php index 53f2362..96258f1 100644 --- a/action/add_comment.php +++ b/action/add_comment.php @@ -78,7 +78,6 @@ if (!$poll) { $comments = $pollService->allCommentsByPollId($poll_id); } -error_reporting(E_ALL & ~E_NOTICE); $smarty->error_reporting = E_ALL & ~E_NOTICE; $smarty->assign('comments', $comments); $comments_html = $smarty->fetch('part/comments_list.tpl'); diff --git a/action/send_edit_link_by_email_action.php b/action/send_edit_link_by_email_action.php index f7f214b..d79b80e 100644 --- a/action/send_edit_link_by_email_action.php +++ b/action/send_edit_link_by_email_action.php @@ -88,8 +88,6 @@ if (is_null($message)) { $result = true; } - -error_reporting(E_ALL & ~E_NOTICE); $smarty->error_reporting = E_ALL & ~E_NOTICE; $response = array('result' => $result, 'message' => $message);