mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
"MDL-25406 WIKI, fixed wid parameter"
This commit is contained in:
parent
c89fa3fe4c
commit
33ea845ab2
@ -98,7 +98,7 @@ if ($id) {
|
||||
|
||||
// Getting first page. If it does not exists, redirecting to create page
|
||||
if (!$page = wiki_get_first_page($subwiki->id, $wiki)) {
|
||||
$params = array('swid' => $wiki->id, 'title' => $wiki->firstpagetitle);
|
||||
$params = array('wid'=>$wiki->id, 'uid'=>$userid ,'gid'=>$currentgroup, 'title'=>$wiki->firstpagetitle);
|
||||
$url = new moodle_url('/mod/wiki/create.php', $params);
|
||||
redirect($url);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user