Skip to content

Commit

Permalink
MDL-58970 themes: Fix references to core/loginform template
Browse files Browse the repository at this point in the history
  • Loading branch information
abias committed Jun 2, 2017
1 parent 92a1ea6 commit 79675c0
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/outputrenderers.php
Original file line number Diff line number Diff line change
Expand Up @@ -4294,7 +4294,7 @@ public function render_login(\core_auth\output\login $form) {
$context->cookieshelpiconformatted = $this->help_icon('cookiesenabled');
$context->errorformatted = $this->error_text($context->error);

return $this->render_from_template('core/login', $context);
return $this->render_from_template('core/loginform', $context);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/templates/loginform.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
}}
{{!
@template core/login
@template core/loginform
Moodle template for the login page.
Expand Down
2 changes: 1 addition & 1 deletion theme/boost/classes/output/core_renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ public function render_login(\core_auth\output\login $form) {
$context->logourl = $url;
$context->sitename = format_string($SITE->fullname, true, ['context' => context_course::instance(SITEID), "escape" => false]);

return $this->render_from_template('core/login', $context);
return $this->render_from_template('core/loginform', $context);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion theme/boost/templates/core/loginform.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
}}
{{!
@template core/login
@template core/loginform
Moodle template for the login page.
Expand Down
4 changes: 4 additions & 0 deletions theme/upgrade.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ information provided here is intended especially for theme designer.
setup for this module have been moved from core standard_head_html to the bootstrapbase
renderer. If your theme needs this javascript you will need to ensure the bootstrap renderer
is called, or require the JS yourself
* There was a mustache template login.mustache in /lib/templates/ rendering the login form
and a template with the same name in /theme/boost/templates/ rendering the pagelayout "login".
To prevent misunderstanding when overriding one of these templates in a Boost child theme,
the first one was renamed to loginform.mustache - see MDL-58970.

=== 3.2 ===

Expand Down

0 comments on commit 79675c0

Please sign in to comment.