BUGFIX Checking for the same combined filename in Requirements::combine_files() to avoid irrelevant error messages

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@106225 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-06-07 23:10:56 +00:00 committed by Sam Minnee
parent c38dc3b1b4
commit 25b65b71cf

View File

@ -834,7 +834,7 @@ class Requirements_Backend {
// duplicate check
foreach($this->combine_files as $_combinedFileName => $_files) {
$duplicates = array_intersect($_files, $files);
if($duplicates) {
if($duplicates && $combinedFileName != $_combinedFileName) {
user_error("Requirements_Backend::combine_files(): Already included files " . implode(',', $duplicates) . " in combined file '{$_combinedFileName}'", E_USER_NOTICE);
return false;
}