Просмотр исходного кода

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

roman.lesnikov@gmail.com 2 лет назад
Родитель
Сommit
7d27e50fd1
1 измененных файлов с 8 добавлено и 0 удалено
  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()
     {