Skip to content

Commit

Permalink
the __CONSTANT__ syntax is not auto-expanded, so expanding manually
Browse files Browse the repository at this point in the history
  • Loading branch information
rambo committed Dec 16, 2010
1 parent 7fc9adc commit b5d4c6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helpers.php
Expand Up @@ -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))
{
Expand All @@ -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))
Expand Down

0 comments on commit b5d4c6b

Please sign in to comment.