From f76acb2d9d421ff705be6fd2713b8cc2c007e1df Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sun, 12 Oct 2008 04:30:09 +0000 Subject: #282405 by Damien Tournoud, lilou, Dave Reid: Enforce coding standard on elseif. --- modules/comment/comment.pages.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/comment') diff --git a/modules/comment/comment.pages.inc b/modules/comment/comment.pages.inc index 789ffde7f..fe97f041b 100644 --- a/modules/comment/comment.pages.inc +++ b/modules/comment/comment.pages.inc @@ -88,7 +88,7 @@ function comment_reply($node, $pid = NULL) { } } // This is the case where the comment is in response to a node. Display the node. - else if (user_access('access content')) { + elseif (user_access('access content')) { $output .= node_view($node); } @@ -97,7 +97,7 @@ function comment_reply($node, $pid = NULL) { drupal_set_message(t("This discussion is closed: you can't post new comments."), 'error'); drupal_goto("node/$node->nid"); } - else if (user_access('post comments')) { + elseif (user_access('post comments')) { $output .= comment_form_box(array('pid' => $pid, 'nid' => $node->nid), t('Reply')); } else { -- cgit v1.2.3