includes/plugins.php
changeset 560 8981dcf7d485
parent 555 ac4c6a7f01d8
child 568 3700f7124c2b
--- 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 )
     {