mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
wiki MDL-24130 fixed editing errors when editing is turned on when creating a first wiki page.
This commit is contained in:
parent
ace65a10f7
commit
af49fc364c
@ -75,6 +75,7 @@ if (!empty($swid)) {
|
||||
$wikipage->set_uid($subwiki->userid);
|
||||
$wikipage->set_swid($swid);
|
||||
} else {
|
||||
$wikipage->set_wid($wid);
|
||||
$wikipage->set_gid($gid);
|
||||
$wikipage->set_uid($uid);
|
||||
}
|
||||
|
@ -865,6 +865,7 @@ class page_wiki_create extends page_wiki {
|
||||
|
||||
private $format;
|
||||
private $swid;
|
||||
private $wid;
|
||||
private $action;
|
||||
private $mform;
|
||||
|
||||
@ -880,6 +881,7 @@ class page_wiki_create extends page_wiki {
|
||||
if ($this->action == 'new') {
|
||||
$params['action'] = 'new';
|
||||
$params['swid'] = $this->swid;
|
||||
$params['wid'] = $this->wid;
|
||||
if ($this->title != get_string('newpage', 'wiki')) {
|
||||
$params['title'] = $this->title;
|
||||
}
|
||||
@ -895,6 +897,10 @@ class page_wiki_create extends page_wiki {
|
||||
$this->format = $format;
|
||||
}
|
||||
|
||||
function set_wid($wid) {
|
||||
$this->wid = $wid;
|
||||
}
|
||||
|
||||
function set_swid($swid) {
|
||||
$this->swid = $swid;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user