// fix addons themes not being fetched
This commit is contained in:
@@ -34,7 +34,7 @@
|
|||||||
tab: 'AdminThemes',
|
tab: 'AdminThemes',
|
||||||
token: '{$token}',
|
token: '{$token}',
|
||||||
ajax: '1',
|
ajax: '1',
|
||||||
action:'getAddons',
|
action:'getAddonsThemes',
|
||||||
page:'themes'
|
page:'themes'
|
||||||
}, function(a){
|
}, function(a){
|
||||||
$("#prestastore-content").html("<legend><img src='../img/admin/prestastore.gif' class='middle' />{l s='Live from PrestaShop Addons!'}</legend>"+a);
|
$("#prestastore-content").html("<legend><img src='../img/admin/prestastore.gif' class='middle' />{l s='Live from PrestaShop Addons!'}</legend>"+a);
|
||||||
|
|||||||
@@ -340,7 +340,6 @@ class AdminThemesControllerCore extends AdminController
|
|||||||
// notice : readfile should be replaced by something else
|
// notice : readfile should be replaced by something else
|
||||||
if (@fsockopen('addons.prestashop.com', 80, $errno, $errst, 3))
|
if (@fsockopen('addons.prestashop.com', 80, $errno, $errst, 3))
|
||||||
readfile('http://addons.prestashop.com/adminmodules.php?lang='.$this->context->language->iso_code);
|
readfile('http://addons.prestashop.com/adminmodules.php?lang='.$this->context->language->iso_code);
|
||||||
$this->content = '';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user