Skip to content

Commit

Permalink
blocks MDL-23935 fixed abuse of moodle_page protected variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Hemelryk committed Aug 26, 2010
1 parent 136ca7c commit 05c9272
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/blocklib.php
Expand Up @@ -1114,7 +1114,7 @@ public function process_url_edit() {
$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;
Expand Down
4 changes: 4 additions & 0 deletions lib/pagelib.php
Expand Up @@ -1613,6 +1613,10 @@ function get_modulerecord() {
public function has_set_url() {
return ($this->_url!==null);
}

public function set_block_actions_done($setting = true) {
$this->_block_actions_done = $setting;
}
}

/**
Expand Down

0 comments on commit 05c9272

Please sign in to comment.