Jelajahi Sumber

config.php was not loaded before plugin.php, but that's needed to make
plugins work. The real solution is a centralized init and no active code
under functions/

Thijs Kinkhorst 19 tahun lalu
induk
melakukan
184c69663d
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      functions/plugin.php

+ 2 - 1
functions/plugin.php

@@ -15,6 +15,7 @@
 
 /** Everything needs global.. */
 require_once(SM_PATH . 'functions/global.php');
+require_once(SM_PATH . 'config/config.php');
 require_once(SM_PATH . 'functions/prefs.php');
 
 global $squirrelmail_plugin_hooks;
@@ -234,4 +235,4 @@ if (isset($plugins) && is_array($plugins)) {
     }
 }
 
-?>
+?>