Skip to content

Commit

Permalink
else missing
Browse files Browse the repository at this point in the history
  • Loading branch information
infograf768 committed Aug 23, 2014
1 parent 14c5004 commit 5775e0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions component/admin/models/package.php
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ public function download($data)
}

// Create a basic xx-XX.localise.php if not present in target language
if (!JFile::exists($path) || empty($languagedata))
elseif (!JFile::exists($path) || empty($languagedata))
{
$language_data = file_get_contents(JPATH_ROOT . '/language/' . $reftag . '/' . $reftag . '.localise.php');
$language_data = str_replace($reftag, $data['language'], $language_data);
Expand Down Expand Up @@ -921,7 +921,7 @@ public function download($data)
}

// Create a basic xx-XX.localise.php if not present in target language
if (!JFile::exists($path) || empty($languagedata))
elseif (!JFile::exists($path) || empty($languagedata))
{
$language_data = file_get_contents(JPATH_ROOT . '/administrator/language/' . $reftag . '/' . $reftag . '.localise.php');
$language_data = str_replace($reftag, $data['language'], $language_data);
Expand Down

0 comments on commit 5775e0a

Please sign in to comment.