From 4503c58bc954671503650223bbcabe7a2951d415 Mon Sep 17 00:00:00 2001 From: cash Date: Thu, 3 Feb 2011 02:55:41 +0000 Subject: Refs #2428 removed some uses of CONFIG in the views git-svn-id: http://code.elgg.org/elgg/trunk@7996 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/input/button.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'views/default/input/button.php') 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'] = ""; } ?> -- cgit v1.2.3