From f71781d95af89e837edeeefdcb39ccd42d8badf8 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sun, 4 Dec 2011 12:54:07 +0100 Subject: [PATCH] MINOR Using require_once in SSTemplateParser instead of require to avoid class declaration errors when running tests through phpunit binary --- view/SSTemplateParser.php | 4 ++-- view/SSTemplateParser.php.inc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/view/SSTemplateParser.php b/view/SSTemplateParser.php index 18af80df3..5aebb1388 100644 --- a/view/SSTemplateParser.php +++ b/view/SSTemplateParser.php @@ -9,11 +9,11 @@ WARNING: This file has been machine generated. Do not edit it, or your changes w // We want this to work when run by hand too if (defined(THIRDPARTY_PATH)) { - require THIRDPARTY_PATH . '/php-peg/Parser.php' ; + require_once(THIRDPARTY_PATH . '/php-peg/Parser.php'); } else { $base = dirname(__FILE__); - require $base.'/../thirdparty/php-peg/Parser.php'; + require_once($base.'/../thirdparty/php-peg/Parser.php'); } /** diff --git a/view/SSTemplateParser.php.inc b/view/SSTemplateParser.php.inc index 9d89cf5e8..63dca3116 100644 --- a/view/SSTemplateParser.php.inc +++ b/view/SSTemplateParser.php.inc @@ -27,11 +27,11 @@ This comment will not appear in the output // We want this to work when run by hand too if (defined(THIRDPARTY_PATH)) { - require THIRDPARTY_PATH . '/php-peg/Parser.php' ; + require_once(THIRDPARTY_PATH . '/php-peg/Parser.php'); } else { $base = dirname(__FILE__); - require $base.'/../thirdparty/php-peg/Parser.php'; + require_once($base.'/../thirdparty/php-peg/Parser.php'); } /**