Skip to content

Commit

Permalink
モバイルの場合画像認証が効かないのでデモサイトではコメントを受け付けない仕様とした
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuring committed Oct 7, 2013
1 parent bded015 commit 099de86
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion baser/plugins/blog/controllers/blog_controller.php
Expand Up @@ -369,7 +369,10 @@ function archives() {
}
// コメント送信
if(isset($this->data['BlogComment'])) {
$this->add_comment($id);
// TODO モバイルの場合画像認証が効かないのでデモサイトではコメントを受け付けない仕様とした
if(empty($this->siteConfigs['demo']) || Configure::read('BcRequest.agent') != 'mobile') {
$this->add_comment($id);
}
}

$_posts = $this->_getBlogPosts(array('conditions' => array('id' => $id)));
Expand Down

0 comments on commit 099de86

Please sign in to comment.