ソースを参照

Missing ini_set of include path for test.php

Fixes #2167

Signed-off-by: mark_story <mark@mark-story.com>
m 14 年 前
コミット
5a5a542a71
1 ファイル変更3 行追加0 行削除
  1. 3 0
      lib/Cake/Console/Templates/skel/webroot/test.php

+ 3 - 0
lib/Cake/Console/Templates/skel/webroot/test.php

@@ -68,6 +68,9 @@ if (!defined('WWW_ROOT')) {
 }
 
 if (!defined('CAKE_CORE_INCLUDE_PATH')) {
+	if (function_exists('ini_set')) {
+		ini_set('include_path', ROOT . DS . 'lib' . PATH_SEPARATOR . ini_get('include_path'));
+	}
 	if (!include('Cake' . DS . 'bootstrap.php')) {
 		$failed = true;
 	}