From 949a233076ec18f86e60f90a7a8837cb422664af Mon Sep 17 00:00:00 2001 From: cash Date: Thu, 3 Feb 2011 03:33:52 +0000 Subject: Refs #2428 almost done removing CONFIG access - mostly plugin start.php left git-svn-id: http://code.elgg.org/elgg/trunk@7999 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/invitefriends/views/default/invitefriends/formitems.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mod/invitefriends/views/default') diff --git a/mod/invitefriends/views/default/invitefriends/formitems.php b/mod/invitefriends/views/default/invitefriends/formitems.php index c7af78981..555311dd0 100644 --- a/mod/invitefriends/views/default/invitefriends/formitems.php +++ b/mod/invitefriends/views/default/invitefriends/formitems.php @@ -6,10 +6,11 @@ * @package ElggInviteFriends */ -if ($CONFIG->allow_registration) { +if (elgg_get_config('allow_registration')) { + $site = elgg_get_site_entity(); $introduction = elgg_echo('invitefriends:introduction'); $message = elgg_echo('invitefriends:message'); - $default = elgg_echo('invitefriends:message:default', array($CONFIG->site->name)); + $default = elgg_echo('invitefriends:message:default', array($site->name)); echo <<< HTML

-- cgit v1.2.3