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
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:
parent
c38dc3b1b4
commit
25b65b71cf
@ -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