Skip to content

Commit

Permalink
Improved variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
mmeyer2k committed Jan 29, 2014
1 parent d7cddca commit 2f773d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions class.phpmailer.php
Expand Up @@ -1380,13 +1380,13 @@ public function setLanguage($langcode = 'en', $lang_path = 'language/')
//Overwrite language-specific strings.
//This way we'll never have missing translations - no more "language string failed to load"!
$l = true;
$path = $lang_path . 'phpmailer.lang-' . $langcode . '.php';
$lang_file = $lang_path . 'phpmailer.lang-' . $langcode . '.php';
if ($langcode != 'en') { //There is no English translation file
//Make sure language file path is readable
if (!is_readable($path)) {
if (!is_readable($lang_file)) {
$l = false;
} else {
$l = include $path;
$l = include $lang_file;
}
}
$this->language = $PHPMAILER_LANG;
Expand Down

0 comments on commit 2f773d1

Please sign in to comment.