소스 검색

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)) {
     }
 }
 
-?>
+?>