includes/plugins.php
changeset 560 8981dcf7d485
parent 555 ac4c6a7f01d8
child 568 3700f7124c2b
equal deleted inserted replaced
559:cfdc0aa8af50 560:8981dcf7d485
   840       break;
   840       break;
   841     }
   841     }
   842     // get plugin data
   842     // get plugin data
   843     $dataset =& $plugin_list[$filename];
   843     $dataset =& $plugin_list[$filename];
   844     
   844     
       
   845     // check for a language block
       
   846     $blocks = self::parse_plugin_blocks(ENANO_ROOT . '/plugins/' . $filename, 'language');
       
   847     if ( count($blocks) < 1 )
       
   848     {
       
   849       return array(
       
   850           'mode' => 'error',
       
   851           'error' => $lang->get('acppl_err_import_no_strings')
       
   852         );
       
   853     }
       
   854     
   845     $result = $lang->import_plugin(ENANO_ROOT . '/plugins/' . $filename);
   855     $result = $lang->import_plugin(ENANO_ROOT . '/plugins/' . $filename);
   846     if ( $result )
   856     if ( $result )
   847     {
   857     {
   848       return array(
   858       return array(
   849         'success' => true
   859         'success' => true