Merge pull request #1557 from ralpheav/master

Moving Language verification process from enablePlugin to import pluginFile
This commit is contained in:
julceslauhub
2013-04-15 08:29:05 -07:00
2 changed files with 6 additions and 2 deletions

View File

@@ -239,7 +239,6 @@ class PMPluginRegistry
$this->_aPlugins[$detail->sNamespace] = $oPlugin;
if (method_exists( $oPlugin, 'enable' )) {
$oPlugin->enable();
$this->verifyTranslation($detail->sNamespace);
}
return true;
}

View File

@@ -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) {