From 623e78b7798413fe979f73d89e1396e01e624f80 Mon Sep 17 00:00:00 2001 From: Renand Baur Date: Tue, 18 Oct 2011 09:50:34 +0200 Subject: [PATCH] Add the ability to use a path with /images at start --- FallbackImage.cfc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/FallbackImage.cfc b/FallbackImage.cfc index 077a157..59025f5 100755 --- a/FallbackImage.cfc +++ b/FallbackImage.cfc @@ -16,6 +16,14 @@ + + local.source = listToArray(arguments.source,"/"); + if (local.source[1] eq "images") { + arrayDeleteAt(local.source,1); + } + local.source = arrayToList(local.source,"/"); + StructUpdate(arguments, "source", local.source); +