Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
MDL-30291 outputrenderers: fixed typo for
  • Loading branch information
Rossiani Wijaya committed May 14, 2012
1 parent 71d7bc3 commit 1dedecf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/outputrenderers.php
Expand Up @@ -520,7 +520,7 @@ public function login_info() {
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()) {
Expand All @@ -547,7 +547,7 @@ public function login_info() {
}
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
Expand All @@ -563,7 +563,7 @@ public function login_info() {
}
} else {
$loggedinas = get_string('loggedinnot', 'moodle');
if (!$loginapge) {
if (!$loginpage) {
$loggedinas .= " (<a href=\"$loginurl\">".get_string('login').'</a>)';
}
}
Expand Down

0 comments on commit 1dedecf

Please sign in to comment.