Moving Language verification process from enablePlugin to import plugin file

This commit is contained in:
ralph
2013-04-12 14:40:16 -04:00
parent 96df9f3c4d
commit 24be37fc1a
2 changed files with 6 additions and 2 deletions

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