// Normalization

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16069 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mDeflotte
2012-06-18 15:23:25 +00:00
parent b867115dd7
commit e87f6d9bc6
+17 -17
View File
@@ -61,13 +61,13 @@ class AdminModulesControllerCore extends AdminController
protected $cache_file_default_country_modules_list = '/config/xml/default_country_modules_list.xml'; protected $cache_file_default_country_modules_list = '/config/xml/default_country_modules_list.xml';
protected $cache_file_customer_modules_list = '/config/xml/customer_modules_list.xml'; protected $cache_file_customer_modules_list = '/config/xml/customer_modules_list.xml';
/* /**
** Admin Modules Controller Constructor * Admin Modules Controller Constructor
** Init list modules categories * Init list modules categories
** Load id employee * Load id employee
** Load filter configuration * Load filter configuration
** Load cache file * Load cache file
*/ */
public function __construct() public function __construct()
{ {
@@ -132,14 +132,14 @@ class AdminModulesControllerCore extends AdminController
$this->logged_on_addons = true; $this->logged_on_addons = true;
} }
/* /**
** Ajax Request Methods * Ajax Request Methods
** *
** if modules_list.xml is outdated, * if modules_list.xml is outdated,
** this function will re-upload it from prestashop.com * this function will re-upload it from prestashop.com
** *
** @return null * @return null
*/ */
public function isFresh($file, $timeout = 604800000) public function isFresh($file, $timeout = 604800000)
{ {
@@ -200,12 +200,12 @@ class AdminModulesControllerCore extends AdminController
// Make the request // Make the request
$opts = array( $opts = array(
'http'=>array( 'http'=>array(
'method'=> 'POST', 'method'=> 'POST',
'content' => $postData, 'content' => $postData,
'header' => 'Content-type: application/x-www-form-urlencoded', 'header' => 'Content-type: application/x-www-form-urlencoded',
'timeout' => 5, 'timeout' => 5,
) )
); );
$context = stream_context_create($opts); $context = stream_context_create($opts);
foreach ($protocolsList as $protocol => $port) foreach ($protocolsList as $protocol => $port)