Plugin backend: bugfix: installing a plugin should now properly import its strings
authorDan
Thu, 26 Feb 2009 01:28:18 -0500
changeset 846 0d2d0dfbe443
parent 845 a4460ba8ada2
child 847 28d5049803f1
Plugin backend: bugfix: installing a plugin should now properly import its strings
includes/plugins.php
--- a/includes/plugins.php	Thu Feb 26 01:27:56 2009 -0500
+++ b/includes/plugins.php	Thu Feb 26 01:28:18 2009 -0500
@@ -645,12 +645,13 @@
     if ( !$q )
       $db->die_json();
     
+    $plugin_list[$filename]['installed'] = true;
+    $this->reimport_plugin_strings($filename, $plugin_list);
+    
     $return = array(
       'success' => true
     );
     
-    $this->reimport_plugin_strings($filename, $plugin_list);
-    
     endswitch;
     
     $cache->purge('plugins');