Fix new install with developer debug on.

This commit is contained in:
tjhunt 2009-07-21 13:58:47 +00:00
parent d81f1d6fd8
commit a8c310c253

View File

@ -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 . '. ';