--- a/includes/plugins.php Sat Jun 07 12:40:53 2008 -0400
+++ b/includes/plugins.php Sat Jun 07 12:43:19 2008 -0400
@@ -842,6 +842,16 @@
// get plugin data
$dataset =& $plugin_list[$filename];
+ // check for a language block
+ $blocks = self::parse_plugin_blocks(ENANO_ROOT . '/plugins/' . $filename, 'language');
+ if ( count($blocks) < 1 )
+ {
+ return array(
+ 'mode' => 'error',
+ 'error' => $lang->get('acppl_err_import_no_strings')
+ );
+ }
+
$result = $lang->import_plugin(ENANO_ROOT . '/plugins/' . $filename);
if ( $result )
{