mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX Checking for the same combined filename in Requirements::combine_files() to avoid irrelevant error messages (from r106225)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112529 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
39b056024f
commit
ad84f07af0
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user