Skip to content

Commit

Permalink
Merge pull request #118 from s-nakajima/master
Browse files Browse the repository at this point in the history
Languageモデルにメソッドを追加したことによる修正
  • Loading branch information
s-nakajima committed Jan 5, 2019
2 parents e237c6e + 1a4e363 commit 4cc0e3c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Model/BbsArticle.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ public function __construct($id = false, $table = null, $ds = null) {
'Language' => 'M17n.Language',
]);

$langs = $this->Language->getLanguage();
if (count($langs) > 1) {
if ($this->Language->isMultipleLang()) {
$conditions = [
'BbsArticle.key = BbsArticleTree.bbs_article_key',
'OR' => array(
Expand Down

0 comments on commit 4cc0e3c

Please sign in to comment.