Improvement install plugin interface Enterprise manager
This commit is contained in:
@@ -429,8 +429,8 @@ class PMPluginRegistry
|
||||
$plugins = array ();
|
||||
$namePlugin = array ();
|
||||
foreach ($files as $f) {
|
||||
//if (preg_match("/^([\w\.]*).ini$/", $f["filename"], $matches)) {
|
||||
if (preg_match( "/^(.*pluginConfig)\.ini$/", $f["filename"], $matches )) {
|
||||
if (preg_match("/^([\w\.]*).ini$/", $f["filename"], $matches)) {
|
||||
//if (preg_match( "/^(.*pluginConfig)\.ini$/", $f["filename"], $matches )) {
|
||||
$plugins[] = $matches[1];
|
||||
}
|
||||
if (preg_match( "/^.*($pluginName)\.php$/", $f["filename"], $matches )) {
|
||||
@@ -485,7 +485,6 @@ class PMPluginRegistry
|
||||
*/
|
||||
|
||||
$res = $tar->extract( PATH_PLUGINS );
|
||||
|
||||
if (! file_exists( PATH_PLUGINS . $pluginFile )) {
|
||||
throw (new Exception( "File \"$pluginFile\" doesn't exist" ));
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ class AddonsStore extends BaseAddonsStore
|
||||
$criteria = new Criteria(AddonsStorePeer::DATABASE_NAME);
|
||||
$criteria->addSelectColumn("*");
|
||||
$criteria->add(AddonsStorePeer::STORE_TYPE, "license", Criteria::EQUAL);
|
||||
//$criteria->add(AddonsStorePeer::STORE_ID, $licenseManager->id, Criteria::NOT_EQUAL);
|
||||
$criteria->add(AddonsStorePeer::STORE_ID, $licenseManager->id, Criteria::NOT_EQUAL);
|
||||
|
||||
foreach (AddonsStorePeer::doSelect($criteria) as $store) {
|
||||
$store->clear();
|
||||
|
||||
@@ -472,7 +472,8 @@ Ext.onReady(function() {
|
||||
method: "POST"
|
||||
}),
|
||||
baseParams: {
|
||||
"action": "addonsList"
|
||||
"action": "addonsList",
|
||||
"force" : true
|
||||
},
|
||||
|
||||
//url: "addonsStoreAction?action=addonsList",
|
||||
|
||||
Reference in New Issue
Block a user