mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
Fix new install with developer debug on.
This commit is contained in:
parent
d81f1d6fd8
commit
a8c310c253
@ -483,10 +483,15 @@ class moodle_page {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string a description of this page (context, page-type and sub-page.
|
||||
* @return string a description of this page. Normally displayed in the footer in
|
||||
* developer debug mode.
|
||||
*/
|
||||
public function debug_summary() {
|
||||
$summary = 'Context ' . print_context_name($this->context) . ' (context id ' . $this->context->id . '). ';
|
||||
$summary = '';
|
||||
$summary .= 'General type: ' . $this->generaltype . '. ';
|
||||
if (!during_initial_install()) {
|
||||
$summary .= 'Context ' . print_context_name($this->context) . ' (context id ' . $this->context->id . '). ';
|
||||
}
|
||||
$summary .= 'Page type ' . $this->pagetype . '. ';
|
||||
if ($this->subpage) {
|
||||
'Sub-page ' . $this->subpage . '. ';
|
||||
|
Loading…
x
Reference in New Issue
Block a user