aboutsummaryrefslogtreecommitdiff
path: root/views/default/input
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-03 02:55:41 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-03 02:55:41 +0000
commit4503c58bc954671503650223bbcabe7a2951d415 (patch)
treedbf87ecf25dda9e5e8279a4296d8dea2d8222f12 /views/default/input
parent72b8810ea3403491362a47cc5075402d785f1038 (diff)
downloadelgg-4503c58bc954671503650223bbcabe7a2951d415.tar.gz
elgg-4503c58bc954671503650223bbcabe7a2951d415.tar.bz2
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
Diffstat (limited to 'views/default/input')
-rw-r--r--views/default/input/button.php4
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'] = "";
}
?>