1
0
mirror of https://github.com/moodle/moodle.git synced 2025-04-25 02:16:06 +02:00

MDL-11816 fixed wiki export with quick hack; merged from MOODLE_19_STABLE

This commit is contained in:
skodak 2008-02-19 11:05:53 +00:00
parent a71a3aefe0
commit 7b5c194962

@ -58,7 +58,9 @@ function moodle_ewiki_page_wiki_dump($id=0, $data=0, $action=0) {
$_REQUEST["withvirtualpages"],
$_REQUEST["exportdestinations"]);
}
if($cont===false) return;
if($cont===false) {
die;
}
$url = ewiki_script("", "WikiExport");
$ret = ewiki_make_title($id, $id, 2);
@ -67,8 +69,9 @@ function moodle_ewiki_page_wiki_dump($id=0, $data=0, $action=0) {
// removing name="form" from the following form as it does not validate
// and is not referenced. MDL-7861
$ret .= "<br /><br />\n".
'<FORM method="post" action="'.$url.'">'."\n".
'<FORM method="post" action="view.php">'."\n".
"<div class=\"wikiexportbox\">\n".
'<INPUT type="hidden" name="page" value="WikiExport" />'."\n".
'<INPUT type="hidden" name="userid" value="'.$userid.'" />'."\n".
'<INPUT type="hidden" name="groupid" value="'.$groupid.'" />'."\n".
'<INPUT type="hidden" name="id" value="'.$cm->id.'" />'."\n".