Merge pull request #1557 from ralpheav/master
Moving Language verification process from enablePlugin to import pluginFile
This commit is contained in:
@@ -239,7 +239,6 @@ class PMPluginRegistry
|
||||
$this->_aPlugins[$detail->sNamespace] = $oPlugin;
|
||||
if (method_exists( $oPlugin, 'enable' )) {
|
||||
$oPlugin->enable();
|
||||
$this->verifyTranslation($detail->sNamespace);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -158,7 +158,12 @@ try {
|
||||
|
||||
$oPluginRegistry->setupPlugins(); //get and setup enabled plugins
|
||||
$size = file_put_contents( PATH_DATA_SITE . "plugin.singleton", $oPluginRegistry->serializeInstance() );
|
||||
|
||||
|
||||
$response = $oPluginRegistry->verifyTranslation( $details->sNamespace);
|
||||
//if ($response->recordsCountSuccess <= 0) {
|
||||
//throw (new Exception( 'The plugin ' . $details->sNamespace . ' couldn\'t verify any translation item. Verified Records:' . $response->recordsCountSuccess));
|
||||
//}
|
||||
|
||||
G::header( "Location: pluginsMain" );
|
||||
die();
|
||||
} catch (Exception $e) {
|
||||
|
||||
Reference in New Issue
Block a user