From b5d4c6b32881a139ae91ae9eb45ff2df2be2f9d0 Mon Sep 17 00:00:00 2001 From: Eero af Heurlin Date: Thu, 16 Dec 2010 17:27:41 +0200 Subject: [PATCH] the __CONSTANT__ syntax is not auto-expanded, so expanding manually --- helpers.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helpers.php b/helpers.php index 14f6f1e..2327020 100644 --- a/helpers.php +++ b/helpers.php @@ -274,7 +274,7 @@ public static function render_location_image($parent, string $location, $variant */ public static function render_location_placeholder($parent, string $location, $variant = null) { - $url = midgardmvc_core::get_instance()->configuration->attachmentserver_placeholder_url; + $url = str_replace('__MIDGARDMVC_STATIC_URL__', MIDGARDMVC_STATIC_URL, midgardmvc_core::get_instance()->configuration->attachmentserver_placeholder_url); $size_line = null; if (!is_null($variant)) { @@ -287,7 +287,7 @@ public static function render_location_placeholder($parent, string $location, $v $size_line = "width='{$variants[$variant]['width']}' height='{$variants[$variant]['height']}'"; if (isset($variants[$variant]['placeholder_url'])) { - $url = $variants[$variant]['placeholder_url']; + $url = str_replace('__MIDGARDMVC_STATIC_URL__', MIDGARDMVC_STATIC_URL, $variants[$variant]['placeholder_url']); } } if (is_object($parent))