浏览代码

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 年之前
父节点
当前提交
184c69663d
共有 1 个文件被更改,包括 2 次插入1 次删除
  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)) {
     }
 }
 
-?>
+?>