Commit d88c3438 authored by Dan Poltawski's avatar Dan Poltawski
Browse files

Merge branch 'MDL-50271-28' of git://github.com/jleyva/moodle into MOODLE_28_STABLE

parents 8ff5016c caf3cb78
......@@ -1828,6 +1828,11 @@ class moodle_page {
* @throws coding_exception
*/
protected function ensure_theme_not_set() {
// This is explicitly allowed for webservices though which may process many course contexts in a single request.
if (WS_SERVER) {
return;
}
if (!is_null($this->_theme)) {
throw new coding_exception('The theme has already been set up for this page ready for output. ' .
'Therefore, you can no longer change the theme, or anything that might affect what ' .
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment