Browse Source

#4558 - Build-in API support (cmts-view fix)

roman.lesnikov@gmail.com 2 years ago
parent
commit
7d27e50fd1
1 changed files with 8 additions and 0 deletions
  1. 8 0
      template/scripts/BxBaseCmtsPageView.php

+ 8 - 0
template/scripts/BxBaseCmtsPageView.php

@@ -43,6 +43,14 @@ class BxBaseCmtsPageView extends BxTemplPage
             'comment_id' => $iCommentId
         ));
     }
+    
+    protected function _isAvailablePage ($a)
+    {
+        if (!$this->_iCmtId)
+            return false;
+
+        return parent::_isAvailablePage($a);
+    }
 
     public function getCode()
     {