BUG 0000 Añadi la parte de activacion de plugins que vienen con enterprise
This commit is contained in:
@@ -1491,12 +1491,16 @@ class Installer extends Controller
|
|||||||
curl_close($ch);
|
curl_close($ch);
|
||||||
}
|
}
|
||||||
|
|
||||||
$plugins = array('advancedDashboards');
|
$plugins = glob(PATH_CORE."plugins/*.php");
|
||||||
|
//$plugins = array('advancedDashboards');
|
||||||
foreach ($plugins as $value) {
|
foreach ($plugins as $value) {
|
||||||
|
$namePlugin = str_replace('.php', '', $value);
|
||||||
|
error_log('---------->'.$namePlugin);
|
||||||
|
if ($value != 'enterprise') {
|
||||||
$ch = curl_init();
|
$ch = curl_init();
|
||||||
$postData = array();
|
$postData = array();
|
||||||
$postData['action'] = "enable";
|
$postData['action'] = "enable";
|
||||||
$postData['addon'] = $value;
|
$postData['addon'] = $namePlugin;
|
||||||
|
|
||||||
curl_setopt($ch, CURLOPT_URL, "$serv/sys{$workspace}/{$lang}/{$skinName}/enterprise/addonsStoreAction");
|
curl_setopt($ch, CURLOPT_URL, "$serv/sys{$workspace}/{$lang}/{$skinName}/enterprise/addonsStoreAction");
|
||||||
curl_setopt($ch, CURLOPT_HEADER, 0);
|
curl_setopt($ch, CURLOPT_HEADER, 0);
|
||||||
@@ -1514,4 +1518,5 @@ class Installer extends Controller
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user