mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
719bb18db8
commit
f71781d95a
@ -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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user