From 309d5465a9a6243dfd57306927ef74bc75ce058b Mon Sep 17 00:00:00 2001 From: pies Date: Sat, 18 Jun 2005 23:33:13 +0000 Subject: [PATCH] Two missing changes. git-svn-id: https://svn.cakephp.org/repo/trunk/cake@249 3807eeeb-6ff5-0310-8944-8be069107fe0 --- libs/folder.php | 2 ++ vendors/simpletest/scorer.php | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libs/folder.php b/libs/folder.php index 9bad1a97a..78aca4203 100644 --- a/libs/folder.php +++ b/libs/folder.php @@ -30,6 +30,8 @@ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ +uses('object'); + /** * Folder structure browser, lists folders and files. * diff --git a/vendors/simpletest/scorer.php b/vendors/simpletest/scorer.php index 3ee778166..34bcd4dfb 100644 --- a/vendors/simpletest/scorer.php +++ b/vendors/simpletest/scorer.php @@ -372,7 +372,9 @@ * @static */ function inCli() { - return php_sapi_name() == 'cli'; + $method = getenv('REQUEST_METHOD'); + return empty($method); + // return php_sapi_name() == 'cli'; } } ?> \ No newline at end of file