includes/plugins.php
changeset 568 3700f7124c2b
parent 560 8981dcf7d485
child 590 03a60844c7c5
--- a/includes/plugins.php	Mon Jun 09 20:52:34 2008 -0400
+++ b/includes/plugins.php	Tue Jun 10 00:21:34 2008 -0400
@@ -64,6 +64,14 @@
   function loadAll() 
   {
     global $db, $session, $paths, $template, $plugins; // Common objects
+    
+    // if we're in an upgrade, just skip this step
+    if ( defined('IN_ENANO_UPGRADE') )
+    {
+      $this->load_list = array();
+      return false;
+    }
+    
     $dir = ENANO_ROOT.'/plugins/';
     
     $this->load_list = $this->system_plugins;