MINOR Using require_once in SSTemplateParser instead of require to avoid class declaration errors when running tests through phpunit binary

This commit is contained in:
Ingo Schommer 2011-12-04 12:54:07 +01:00
parent 719bb18db8
commit f71781d95a
2 changed files with 4 additions and 4 deletions

View File

@ -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');
}
/**

View File

@ -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');
}
/**