diff options
Diffstat (limited to 'views/default/input/button.php')
-rw-r--r-- | views/default/input/button.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/views/default/input/button.php b/views/default/input/button.php index 8e58b7618..db520b6ac 100644 --- a/views/default/input/button.php +++ b/views/default/input/button.php @@ -8,8 +8,6 @@ * @uses $vars['src'] Src of an image */ -global $CONFIG; - $defaults = array( 'type' => 'button', 'class' => 'elgg-submit-button', @@ -29,7 +27,7 @@ switch ($vars['type']) { } // blank src if trying to access an offsite image. @todo why? -if (strpos($vars['src'], $CONFIG->wwwroot) === false) { +if (strpos($vars['src'], elgg_get_site_url()) === false) { $vars['src'] = ""; } ?> |