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/page/elements/html_begin.php | 7 ++----- views/default/page/elements/html_end.php | 3 --- 2 files changed, 2 insertions(+), 8 deletions(-) (limited to 'views/default/page') diff --git a/views/default/page/elements/html_begin.php b/views/default/page/elements/html_begin.php index c4918205f..6a461d767 100644 --- a/views/default/page/elements/html_begin.php +++ b/views/default/page/elements/html_begin.php @@ -3,18 +3,15 @@ * Start html output. * The standard HTML header that displays across the site * - * @uses $vars['config'] The site configuration settings, imported * @uses $vars['title'] The page title * @uses $vars['body'] The main content of the page */ // Set title if (empty($vars['title'])) { - $title = $vars['config']->sitename; -} else if (empty($vars['config']->sitename)) { - $title = $vars['title']; + $title = elgg_get_config('sitename'); } else { - $title = $vars['config']->sitename . ": " . $vars['title']; + $title = elgg_get_config('sitename') . ": " . $vars['title']; } global $autofeed; diff --git a/views/default/page/elements/html_end.php b/views/default/page/elements/html_end.php index 0862934cf..26b0ee451 100644 --- a/views/default/page/elements/html_end.php +++ b/views/default/page/elements/html_end.php @@ -2,9 +2,6 @@ /** * Start html output. * The standard HTML header that displays across the site - * @uses $vars['config'] The site configuration settings, imported - * @uses $vars['title'] The page title - * @uses $vars['body'] The main content of the page */ ?> -- cgit v1.2.3