Skip to content

Commit

Permalink
Merge pull request #10127 from TheCartpenter:patch-551
Browse files Browse the repository at this point in the history
Pushed dots on $code - admin/controller/design/translation.php file
  • Loading branch information
eka7a committed Sep 20, 2021
2 parents 411810e + ee2c4c2 commit f07a3b1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions upload/admin/controller/design/translation.php
Expand Up @@ -336,7 +336,7 @@ protected function getForm() {
// Get a list of files ready to upload
$data['paths'] = array();

$path = glob(DIR_CATALOG . 'language/'.$code.'/*');
$path = glob(DIR_CATALOG . 'language/' . $code . '/*');

while (count($path) != 0) {
$next = array_shift($path);
Expand All @@ -347,7 +347,7 @@ protected function getForm() {
}

if (substr($file, -4) == '.php') {
$data['paths'][] = substr(substr($file, strlen(DIR_CATALOG . 'language/'.$code.'/')), 0, -4);
$data['paths'][] = substr(substr($file, strlen(DIR_CATALOG . 'language/' . $code . '/')), 0, -4);
}
}
}
Expand Down Expand Up @@ -440,7 +440,7 @@ public function path() {
$language_info = $this->model_localisation_language->getLanguage($language_id);

if (!empty($language_info)) {
$path = glob(DIR_CATALOG . 'language/'.$language_info['code'].'/*');
$path = glob(DIR_CATALOG . 'language/' . $language_info['code'] . '/*');

while (count($path) != 0) {
$next = array_shift($path);
Expand All @@ -451,7 +451,7 @@ public function path() {
}

if (substr($file, -4) == '.php') {
$json[] = substr(substr($file, strlen(DIR_CATALOG . 'language/'.$language_info['code'].'/')), 0, -4);
$json[] = substr(substr($file, strlen(DIR_CATALOG . 'language/' . $language_info['code'] . '/')), 0, -4);
}
}
}
Expand Down

0 comments on commit f07a3b1

Please sign in to comment.