diff options
author | Cesar G <prototech91@gmail.com> | 2013-11-02 14:09:21 -0700 |
---|---|---|
committer | Cesar G <prototech91@gmail.com> | 2013-11-19 07:32:49 -0800 |
commit | 03e78c33fa85fab86ab0cb0802b33beada2a08d3 (patch) | |
tree | 29aecad00b375392ba4eee42b35cc9ec6fd116e7 /phpBB/includes/mcp/mcp_queue.php | |
parent | cccb4fb83d364015962f5f77537ca1a242e03961 (diff) | |
download | forums-03e78c33fa85fab86ab0cb0802b33beada2a08d3.tar forums-03e78c33fa85fab86ab0cb0802b33beada2a08d3.tar.gz forums-03e78c33fa85fab86ab0cb0802b33beada2a08d3.tar.bz2 forums-03e78c33fa85fab86ab0cb0802b33beada2a08d3.tar.xz forums-03e78c33fa85fab86ab0cb0802b33beada2a08d3.zip |
[ticket/11672] The json response call exits so the else is not necessary.
PHPBB3-11672
Diffstat (limited to 'phpBB/includes/mcp/mcp_queue.php')
-rw-r--r-- | phpBB/includes/mcp/mcp_queue.php | 34 |
1 files changed, 11 insertions, 23 deletions
diff --git a/phpBB/includes/mcp/mcp_queue.php b/phpBB/includes/mcp/mcp_queue.php index c782d98fbc..3b5e3752f8 100644 --- a/phpBB/includes/mcp/mcp_queue.php +++ b/phpBB/includes/mcp/mcp_queue.php @@ -692,17 +692,13 @@ class mcp_queue 'visible' => true, )); } - else - { - $message .= '<br /><br />' . $user->lang('RETURN_PAGE', '<a href="' . $redirect . '">', '</a>'); + $message .= '<br /><br />' . $user->lang('RETURN_PAGE', '<a href="' . $redirect . '">', '</a>'); - // If approving one post, also give links back to post... - if (sizeof($post_info) == 1 && $post_url) - { - $message .= '<br /><br />' . $user->lang('RETURN_POST', '<a href="' . $post_url . '">', '</a>'); - } + // If approving one post, also give links back to post... + if (sizeof($post_info) == 1 && $post_url) + { + $message .= '<br /><br />' . $user->lang('RETURN_POST', '<a href="' . $post_url . '">', '</a>'); } - trigger_error($message); } else @@ -836,17 +832,13 @@ class mcp_queue 'visible' => true, )); } - else - { - $message .= '<br /><br />' . $user->lang('RETURN_PAGE', '<a href="' . $redirect . '">', '</a>'); + $message .= '<br /><br />' . $user->lang('RETURN_PAGE', '<a href="' . $redirect . '">', '</a>'); - // If approving one topic, also give links back to topic... - if (sizeof($topic_info) == 1 && $topic_url) - { - $message .= '<br /><br />' . $user->lang('RETURN_TOPIC', '<a href="' . $topic_url . '">', '</a>'); - } + // If approving one topic, also give links back to topic... + if (sizeof($topic_info) == 1 && $topic_url) + { + $message .= '<br /><br />' . $user->lang('RETURN_TOPIC', '<a href="' . $topic_url . '">', '</a>'); } - trigger_error($message); } else @@ -1157,11 +1149,7 @@ class mcp_queue 'visible' => false, )); } - else - { - $message .= '<br /><br />' . $user->lang('RETURN_PAGE', '<a href="' . $redirect . '">', '</a>'); - } - + $message .= '<br /><br />' . $user->lang('RETURN_PAGE', '<a href="' . $redirect . '">', '</a>'); trigger_error($message); } else |