Skip to content

Commit

Permalink
Return $language_id in language.php addLanguage method.
Browse files Browse the repository at this point in the history
Close #3012
  • Loading branch information
jamesallsup committed May 18, 2015
1 parent d39c711 commit e58cae1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions upload/admin/model/localisation/language.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ public function addLanguage($data) {
foreach ($query->rows as $recurring) {
$this->db->query("INSERT INTO " . DB_PREFIX . "recurring_description SET recurring_id = '" . (int)$recurring['recurring_id'] . "', language_id = '" . (int)$language_id . "', name = '" . $this->db->escape($recurring['name']));
}

return $language_id;
}

public function editLanguage($language_id, $data) {
Expand Down

0 comments on commit e58cae1

Please sign in to comment.