]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-11816 fixed wiki export with quick hack; merged from MOODLE_19_STABLE
authorskodak <skodak>
Tue, 19 Feb 2008 11:05:53 +0000 (11:05 +0000)
committerskodak <skodak>
Tue, 19 Feb 2008 11:05:53 +0000 (11:05 +0000)
mod/wiki/ewiki/plugins/moodle/moodle_wikidump.php

index 460cabc06b079240af60b2cc12b9725e60d21ceb..1d9fded5b06d694e7a4689fa4eca2973de86f6ce 100644 (file)
@@ -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".