Skip to content

Commit

Permalink
Merge pull request #43 from s-nakajima/master
Browse files Browse the repository at this point in the history
Installで失敗する
  • Loading branch information
s-nakajima committed Jan 18, 2017
2 parents 2d5d9da + f3ee4fa commit 6e9ee18
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions Model/Language.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,14 +183,16 @@ public function saveActive($data) {
throw new InternalErrorException(__d('net_commons', 'Internal Server Error'));
}

$languages = $this->find('list', array(
'recursive' => -1,
'conditions' => array(
'is_active' => true,
),
));
foreach ($languages as $langId) {
$this->copyOrignalData($langId);
if (Configure::read('NetCommons.installed')) {
$languages = $this->find('list', array(
'recursive' => -1,
'conditions' => array(
'is_active' => true,
),
));
foreach ($languages as $langId) {
$this->copyOrignalData($langId);
}
}

return true;
Expand Down

0 comments on commit 6e9ee18

Please sign in to comment.