includes/plugins.php
changeset 846 0d2d0dfbe443
parent 832 7152ca0a0ce9
child 869 58bc29c14a4d
equal deleted inserted replaced
845:a4460ba8ada2 846:0d2d0dfbe443
   643     $q = $db->sql_query('INSERT INTO ' . table_prefix . "plugins ( plugin_version, plugin_filename, plugin_flags )\n"
   643     $q = $db->sql_query('INSERT INTO ' . table_prefix . "plugins ( plugin_version, plugin_filename, plugin_flags )\n"
   644                       . "  VALUES ( '$version_db', '$filename_db', $flags );");
   644                       . "  VALUES ( '$version_db', '$filename_db', $flags );");
   645     if ( !$q )
   645     if ( !$q )
   646       $db->die_json();
   646       $db->die_json();
   647     
   647     
       
   648     $plugin_list[$filename]['installed'] = true;
       
   649     $this->reimport_plugin_strings($filename, $plugin_list);
       
   650     
   648     $return = array(
   651     $return = array(
   649       'success' => true
   652       'success' => true
   650     );
   653     );
   651     
       
   652     $this->reimport_plugin_strings($filename, $plugin_list);
       
   653     
   654     
   654     endswitch;
   655     endswitch;
   655     
   656     
   656     $cache->purge('plugins');
   657     $cache->purge('plugins');
   657     $cache->purge('page_meta');
   658     $cache->purge('page_meta');