diff --git a/admin-dev/login.php b/admin-dev/login.php index b4de8cfc7..36bdce84a 100644 --- a/admin-dev/login.php +++ b/admin-dev/login.php @@ -98,12 +98,12 @@ if (Tools::isSubmit('Submit')) die(Tools::displayError()); echo ' - +
- + '; exit ; diff --git a/classes/Language.php b/classes/Language.php index 46b832577..519f4dc21 100644 --- a/classes/Language.php +++ b/classes/Language.php @@ -547,7 +547,7 @@ class LanguageCore extends ObjectModel public static function getIdByIso($iso_code) { if (!Validate::isLanguageIsoCode($iso_code)) - die(Tools::displayError('Fatal error : iso code is not correct : ').$iso_code); + die(Tools::displayError('Fatal error: ISO code is not correct').' '.$iso_code); return Db::getInstance()->getValue('SELECT `id_lang` FROM `'._DB_PREFIX_.'lang` WHERE `iso_code` = \''.pSQL(strtolower($iso_code)).'\''); } @@ -555,7 +555,7 @@ class LanguageCore extends ObjectModel public static function getLanguageCodeByIso($iso_code) { if (!Validate::isLanguageIsoCode($iso_code)) - die(Tools::displayError('Fatal error : iso code is not correct : ').$iso_code); + die(Tools::displayError('Fatal error: ISO code is not correct').' '.$iso_code); return Db::getInstance()->getValue('SELECT `language_code` FROM `'._DB_PREFIX_.'lang` WHERE `iso_code` = \''.pSQL(strtolower($iso_code)).'\''); } diff --git a/classes/PaymentModule.php b/classes/PaymentModule.php index cad8fac0c..56d4c191e 100644 --- a/classes/PaymentModule.php +++ b/classes/PaymentModule.php @@ -453,7 +453,7 @@ abstract class PaymentModuleCore extends Module $fileAttachment = NULL; if (Validate::isEmail($customer->email)) - Mail::Send((int)$order->id_lang, 'order_conf', Mail::l('Order confirmation', $order->id_lang), $data, $customer->email, $customer->firstname.' '.$customer->lastname, NULL, NULL, $fileAttachment); + Mail::Send((int)$order->id_lang, 'order_conf', Mail::l('Order confirmation', (int)$order->id_lang), $data, $customer->email, $customer->firstname.' '.$customer->lastname, NULL, NULL, $fileAttachment); } $this->currentOrder = (int)$order->id; return true; diff --git a/classes/Tools.php b/classes/Tools.php index 721f94546..3564bc277 100644 --- a/classes/Tools.php +++ b/classes/Tools.php @@ -1939,7 +1939,7 @@ FileETag INode MTime Size if (!is_array($apacheModuleList)) $apacheModuleList = apache_get_modules(); - // we need strpos (example can be evasive20 + // we need strpos (example, evasive can be evasive20) foreach ($apacheModuleList as $module) { if (strpos($module, $name)!==false) @@ -1955,7 +1955,7 @@ FileETag INode MTime Size phpinfo(INFO_MODULES); $phpinfo = ob_get_contents(); ob_end_clean(); - if (strpos($phpinfo, $module) !== false) + if (strpos($phpinfo, $name) !== false) return true; } diff --git a/classes/Validate.php b/classes/Validate.php index 7160600b8..c5b390895 100644 --- a/classes/Validate.php +++ b/classes/Validate.php @@ -289,7 +289,7 @@ class ValidateCore */ public static function isMessage($message) { - return preg_match('/^([^<>{}]|
+
- http://www.prestashop.com
+ getIsoCodeSelectedLang(), array('fr', 'it', 'de', 'en', 'es')) ? $lm->getIsoCodeSelectedLang() : 'en');
+ echo lang('Prestashop and its community offers over 40 different languages for free download at');
+
+ ?>
http://www.prestashop.com//downloads/#lang_pack