blocks MDL-23935 fixed abuse of moodle_page protected variables

This commit is contained in:
Sam Hemelryk
2010-08-26 06:27:47 +00:00
parent 136ca7c87d
commit 05c92729f2
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -1114,7 +1114,7 @@ class block_manager {
$editurlparams = $this->page->url->params();
$editurlparams['bui_editid'] = $blockid;
$editpage->set_url($editurlbase, $editurlparams);
$editpage->_block_actions_done = true;
$editpage->set_block_actions_done();
// At this point we are either going to redirect, or display the form, so
// overwrite global $PAGE ready for this. (Formslib refers to it.)
$PAGE = $editpage;
+4
View File
@@ -1613,6 +1613,10 @@ class moodle_page {
public function has_set_url() {
return ($this->_url!==null);
}
public function set_block_actions_done($setting = true) {
$this->_block_actions_done = $setting;
}
}
/**