MDL-30291 outputrenderers: fixed typo for

This commit is contained in:
Rossiani Wijaya 2012-05-14 10:25:05 +08:00
parent 71d7bc34a8
commit 1dedecf260

View File

@ -520,7 +520,7 @@ class core_renderer extends renderer_base {
return '';
}
$loginapge = ((string)$this->page->url === get_login_url());
$loginpage = ((string)$this->page->url === get_login_url());
$course = $this->page->course;
if (session_is_loggedinas()) {
@ -547,7 +547,7 @@ class core_renderer extends renderer_base {
}
if (isguestuser()) {
$loggedinas = $realuserinfo.get_string('loggedinasguest');
if (!$loginapge) {
if (!$loginpage) {
$loggedinas .= " (<a href=\"$loginurl\">".get_string('login').'</a>)';
}
} else if (is_role_switched($course->id)) { // Has switched roles
@ -563,7 +563,7 @@ class core_renderer extends renderer_base {
}
} else {
$loggedinas = get_string('loggedinnot', 'moodle');
if (!$loginapge) {
if (!$loginpage) {
$loggedinas .= " (<a href=\"$loginurl\">".get_string('login').'</a>)';
}
}