MDL-40721 wiki: missing page->set_url() when restoring wiki

This commit is contained in:
Marina Glancy
2014-03-07 09:38:15 +08:00
parent 0a489777fc
commit 2f8d26346f
+4
View File
@@ -2149,6 +2149,10 @@ class page_wiki_confirmrestore extends page_wiki_save {
$PAGE->set_url($CFG->wwwroot . '/mod/wiki/viewversion.php', array('pageid' => $this->page->id, 'versionid' => $this->version->id));
}
function print_header() {
$this->set_url();
}
function print_content() {
global $CFG, $PAGE;