// Merge with revision 7841
This commit is contained in:
1 parent
3c8c85b1cd
commit
e2c8d89e41
130 files changed
+6620
-18585
No files matched your search
@@ -150,7 +150,7 @@ class MoneyBookers extends PaymentModule
|
||||
*/
|
||||
private function _fetchWebContent($url, $timeout = 5, $contextOptions = array())
|
||||
{
|
||||
$context = NULL;
|
||||
$stream_context = NULL;
|
||||
$defaultContextOptions = array(
|
||||
'http' => array(
|
||||
'user_agent' => $_SERVER['HTTP_USER_AGENT'],
|
||||
@@ -177,14 +177,14 @@ class MoneyBookers extends PaymentModule
|
||||
$contextOptions = $defaultContextOptions;
|
||||
|
||||
// Create a stream context
|
||||
$context = stream_context_create($contextOptions);
|
||||
$stream_context = stream_context_create($contextOptions);
|
||||
|
||||
if (($fp = @fopen($url, $mode, false, $context)))
|
||||
if (($fp = @fopen($url, $mode, false, $stream_context)))
|
||||
{
|
||||
$content = fgets($fp, 4096);
|
||||
fclose($fp);
|
||||
}
|
||||
else if (!($content = @file_get_contents($url, false, $context)))
|
||||
else if (!($content = @file_get_contents($url, false, $stream_context)))
|
||||
if (($fp = @fsockopen($url, 80, $errnom, $errstr, $timeout)))
|
||||
{
|
||||
preg_match('@^(?:http://)?([^/]+)@i', $url, $matches);
|
||||
@@ -339,9 +339,9 @@ class MoneyBookers extends PaymentModule
|
||||
$iso_img = 'en';
|
||||
|
||||
$manual_links = array(
|
||||
'en' => 'http://www.prestashop.com/partner/Activation_Manual_Prestashop_EN.pdf',
|
||||
'es' => 'http://www.prestashop.com/partner/Manual%20de%20Activacion%20Prestashop_ES.pdf',
|
||||
'fr' => 'http://www.prestashop.com/partner/Manuel_Activation_Prestashop_FR.pdf');
|
||||
'en' => 'http://moneybookers.com/creatives/integrationmanual/MB-Prestashop-Integration_en.pdf',
|
||||
'es' => 'http://www.moneybookers.com/creatives/integrationmanual/MB-Prestashop-Integration_es.pdf',
|
||||
'fr' => 'http://www.moneybookers.com/creatives/integrationmanual/MB-Prestashop-Integration_fr.pdf');
|
||||
|
||||
$iso_manual = $lang->iso_code;
|
||||
if (!array_key_exists($iso_manual, $manual_links))
|
||||
|
||||
Reference in new issue
Block a user