Skip to content

Commit

Permalink
"MDL-25406 WIKI, fixed wid parameter"
Browse files Browse the repository at this point in the history
  • Loading branch information
Dongsheng Cai committed Nov 29, 2010
1 parent c89fa3f commit 33ea845
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/wiki/view.php
Expand Up @@ -98,7 +98,7 @@

// 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);
}
Expand Down

0 comments on commit 33ea845

Please sign in to comment.