diff --git a/src/Control/SimpleResourceURLGenerator.php b/src/Control/SimpleResourceURLGenerator.php index 5a825dbd6..502e504df 100644 --- a/src/Control/SimpleResourceURLGenerator.php +++ b/src/Control/SimpleResourceURLGenerator.php @@ -71,7 +71,7 @@ class SimpleResourceURLGenerator implements ResourceURLGenerator $relativePath = $resource->getRelativePath(); $exists = $resource->exists(); $absolutePath = $resource->getPath(); - } else if (Director::is_absolute_url($relativePath)) { + } elseif (Director::is_absolute_url($relativePath)) { // Path is not relative, and probably not of this site return $relativePath; } else {