From 6e9ded6562cb252f2efabb48588820f729da11e5 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Thu, 11 Mar 2010 11:10:41 +0100 Subject: [PATCH] Cleaner: don't hide syntax errors. Signed-off-by: Florent Bruneau --- include/test.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/test.inc.php b/include/test.inc.php index 0ff3d69..2a7048e 100644 --- a/include/test.inc.php +++ b/include/test.inc.php @@ -19,7 +19,10 @@ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ***************************************************************************/ -if (!@include_once dirname(__FILE__) . '/../../include/test.inc.php') { +$testinclude = dirname(__FILE__) . '/../../include/test.inc.php'; +if (file_exists($testinclude)) { + require_once $testinclude; +} else { require_once dirname(__FILE__) . '/platal.inc.php'; require_once 'PHPUnit/Framework.php'; -- 2.1.4