Skip to content

Commit

Permalink
Removed commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
eSilverStrike committed Feb 16, 2020
1 parent 1ea536f commit c60081c
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions system/lib-article.php
Expand Up @@ -1737,7 +1737,6 @@ function plugin_commentenabled_article($id)
$result = DB_query($sql);
$A = DB_fetchArray($result);
if (DB_numRows($result) == 1 && TOPIC_hasMultiTopicAccess('article', $id) > 0) { // Need read access of topics to post comment
//if (TOPIC_hasMultiTopicAccess('article', $id) > 0)) { // Need read access of topics to post comment
// CommentCode: Enabled = 0, Disabled = -1. Closed = 1
if ($A['commentcode'] == 0) { // Enabled
$retval = true;
Expand Down Expand Up @@ -1768,14 +1767,6 @@ function plugin_savecomment_article($title, $comment, $id, $pid, $postmode)

$retval = '';

/*
$commentcode = DB_getItem($_TABLES['stories'], 'commentcode',
"(sid = '$id') AND (draft_flag = 0) AND (date <= NOW())"
. COM_getPermSQL('AND'));
if (!isset($commentcode) || ($commentcode != 0 || TOPIC_hasMultiTopicAccess('article', $id) < 2)) { // Need read access of topics to post comment
COM_redirect($_CONF['site_url'] . '/index.php');
}
*/
if (!plugin_commentenabled_article($id)) {
COM_redirect($_CONF['site_url'] . '/index.php');
}
Expand Down

0 comments on commit c60081c

Please sign in to comment.