From fd5b9188bd59c0e0000dbd9d69a80abbb87617c9 Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 25 Feb 2005 06:23:46 +0000 Subject: [PATCH] removed explicit style-adding for user login string --- course/recent.php | 2 +- index.php | 4 ++-- lib/pagelib.php | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/course/recent.php b/course/recent.php index 2e7e54d8773..1010518e40c 100644 --- a/course/recent.php +++ b/course/recent.php @@ -20,7 +20,7 @@ $strrecentactivity = get_string("recentactivity"); - $loggedinas = "

".user_login_string($course, $USER)."

"; + $loggedinas = user_login_string($course, $USER); if (!empty($_GET['chooserecent'])) { diff --git a/index.php b/index.php index ff618eea9fa..f440feb3c7b 100644 --- a/index.php +++ b/index.php @@ -40,9 +40,9 @@ } else { $wwwroot = str_replace('http', 'https', $CFG->wwwroot); } - $loginstring = "".get_string('login').''; + $loginstring = "".get_string('login').''; } else { - $loginstring = ''. user_login_string($SITE) .''; + $loginstring = user_login_string($SITE); add_to_log(SITEID, 'course', 'view', 'view.php?id='.SITEID, SITEID); } diff --git a/lib/pagelib.php b/lib/pagelib.php index a380447537f..c0929dcafcd 100644 --- a/lib/pagelib.php +++ b/lib/pagelib.php @@ -369,9 +369,8 @@ class page_course extends page_base { // (i.e., no breadcrumbs other than the default one added inside this function) $button = empty($morebreadcrumbs) ? update_course_icon($this->courserecord->id) : ' '; - $loggedinas = '

'. user_login_string($this->courserecord, $USER) .'

'; print_header($title, $this->courserecord->fullname, $crumbtext, - '', '', true, $button, $loggedinas); + '', '', true, $button, user_login_string($this->courserecord, $USER)); } // SELF-REPORTING SECTION