diff --git a/install-dev/classes/controllerHttp.php b/install-dev/classes/controllerHttp.php index 33c6f9d97..7cef69f5f 100644 --- a/install-dev/classes/controllerHttp.php +++ b/install-dev/classes/controllerHttp.php @@ -30,7 +30,7 @@ abstract class InstallControllerHttp * @var array List of installer steps */ protected static $steps = array('welcome', 'license', 'system', 'configure', 'database', 'process'); - + protected $phone; protected static $instances = array(); /** @@ -318,7 +318,14 @@ abstract class InstallControllerHttp */ public function getPhone() { - return $this->language->getInformation('phone', false); + if ($this->phone === null) + { + $this->phone = $this->language->getInformation('phone', false); + if ($iframe = Tools::file_get_contents('http://api.prestashop.com/iframe/install.php?lang='.$this->language->getLanguageIso())) + if (preg_match('//Ui', $iframe, $matches) && isset($matches[1])) + $this->phone = $matches[1]; + } + return $this->phone; } /** diff --git a/install-dev/langs/es/install.php b/install-dev/langs/es/install.php index 32f9ca37e..69acae9e4 100644 --- a/install-dev/langs/es/install.php +++ b/install-dev/langs/es/install.php @@ -1,7 +1,7 @@ array( - 'phone' => '+1 (888) 947-6543', + 'phone' => '+34 917.872.909', 'support' => 'https://www.prestashop.com/es/support', ), 'translations' => array(