浏览代码

require instead of include_once

pdontthink 19 年之前
父节点
当前提交
29f609f189
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/init.php

+ 1 - 1
include/init.php

@@ -274,7 +274,7 @@ $squirrelmail_plugin_hooks = array();
  * and let the hook calls include only the plugins needed.
  */
 if (file_exists(SM_PATH . 'config/plugin_hooks.php')) {
-    include_once(SM_PATH . 'config/plugin_hooks.php');
+    require(SM_PATH . 'config/plugin_hooks.php');
 }
 
 /**