equal
deleted
inserted
replaced
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'); |