diff --git a/classes/controller/AdminController.php b/classes/controller/AdminController.php
index 23d9de7b5..c0d529d60 100644
--- a/classes/controller/AdminController.php
+++ b/classes/controller/AdminController.php
@@ -1940,7 +1940,10 @@ class AdminControllerCore extends Controller
$this->context->shop = new Shop(Configuration::get('PS_SHOP_DEFAULT'));
elseif ($this->context->shop->id != $shop_id)
$this->context->shop = new Shop($shop_id);
-
+
+ // Replace current default country
+ $this->context->country = new Country((int)Configuration::get('PS_COUNTRY_DEFAULT'));
+
$this->initBreadcrumbs();
}
diff --git a/config/alias.php b/config/alias.php
index 9c4cbb36a..7f870ef23 100644
--- a/config/alias.php
+++ b/config/alias.php
@@ -73,8 +73,10 @@ function bqSQL($string)
function displayFatalError()
{
- $error = error_get_last();
- if ($error !== NULL && in_array($error['type'], array(E_ERROR, E_PARSE)))
+ $error = null;
+ if (function_exists('error_get_last'))
+ $error = error_get_last();
+ if ($error !== NULL && in_array($error['type'], array(E_ERROR, E_PARSE, E_COMPILE_ERROR )))
echo '[PrestaShop] Fatal error in module '.substr(basename($error['file']), 0, -4).':
'.$error['message'];
}
diff --git a/controllers/admin/AdminCustomersController.php b/controllers/admin/AdminCustomersController.php
index 98194a0f5..ad841c3f2 100644
--- a/controllers/admin/AdminCustomersController.php
+++ b/controllers/admin/AdminCustomersController.php
@@ -304,7 +304,7 @@ class AdminCustomersControllerCore extends AdminController
'name' => 'passwd',
'size' => 33,
'required' => ($obj->id ? false : true),
- 'desc' => ($obj->id ? $this->l('Leave this field blank if there\'s no change') : $this->l('Minimum of five characters (only letters and numbers).').' -_')
+ 'desc' => ($obj->id ? $this->l('Leave this field blank if there\'s no change') : $this->l('Minimum of five characters'))
),
array(
'type' => 'birthday',
diff --git a/controllers/admin/AdminEmployeesController.php b/controllers/admin/AdminEmployeesController.php
index ba0aefa34..87d47dc5d 100644
--- a/controllers/admin/AdminEmployeesController.php
+++ b/controllers/admin/AdminEmployeesController.php
@@ -190,7 +190,7 @@ class AdminEmployeesControllerCore extends AdminController
'size' => 33,
'desc' => ($obj->id ?
$this->l('Leave this field blank if you do not want to change your password.') :
- $this->l('Minimum of eight characters (use only letters and numbers)').' -_')
+ $this->l('Minimum of eight characters'))
),
array(
'type' => 'text',
diff --git a/install-dev/theme/views/configure.phtml b/install-dev/theme/views/configure.phtml
index 5b1c7b98a..3e3d42b0f 100644
--- a/install-dev/theme/views/configure.phtml
+++ b/install-dev/theme/views/configure.phtml
@@ -142,7 +142,7 @@ var default_iso = 'session->shop_country ?>';
displayError('admin_password')): ?>
displayError('admin_password') ?>
-
l('Must be letters and numbers with at least 8 characters') ?>
+l('Must be at least 8 characters') ?>