From: toyomoyo Date: Wed, 10 Jan 2007 03:07:24 +0000 (+0000) Subject: MDL-7861 xhtml strict fixes for wiki X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=82056f673565f0c6dd4138afef75e48db0fdc698;p=moodle.git MDL-7861 xhtml strict fixes for wiki --- diff --git a/course/mod.php b/course/mod.php index 8d24ef4297..78134941bf 100644 --- a/course/mod.php +++ b/course/mod.php @@ -695,7 +695,7 @@ $defaultformat = FORMAT_MOODLE; } - $icon = ''; + $icon = ''.get_string('modulename',$module->name).''; print_heading_with_help($pageheading, "mods", $module->name, $icon); print_simple_box_start('center', '', '', 5, 'generalbox', $module->name); diff --git a/mod/wiki/ewiki/plugins/moodle/moodle_wikidump.php b/mod/wiki/ewiki/plugins/moodle/moodle_wikidump.php index ce2098b2fb..460cabc06b 100644 --- a/mod/wiki/ewiki/plugins/moodle/moodle_wikidump.php +++ b/mod/wiki/ewiki/plugins/moodle/moodle_wikidump.php @@ -64,44 +64,47 @@ function moodle_ewiki_page_wiki_dump($id=0, $data=0, $action=0) { $ret = ewiki_make_title($id, $id, 2); $ret .= ($cont&&$cont!==true)?$cont."

\n":""; $ret .= get_string("wikiexportcomment","wiki"); + // removing name="form" from the following form as it does not validate + // and is not referenced. MDL-7861 $ret .= "

\n". - '
'."\n". - ''."\n". - ''."\n". - ''."\n". - ''."\n". - "
\n"; + ''."\n". + "
\n". + ''."\n". + ''."\n". + ''."\n". + ''."\n"; + // Export binaries too ? if(!$wiki->ewikiacceptbinary) { - $ret.=''.$exportdestinations[0]."\n"; + $ret.=''.$exportdestinations[0]."\n"; } else { - $ret.=''."\n"; + $ret.=''."\n"; } - $ret.="\n"; + $ret.="
\n"; if($wiki->ewikiacceptbinary) { - $ret.=" \n". - ' \n". + $ret.=" \n". + ' \n". " \n". " \n"; } - $ret.=" \n". - ' \n". + $ret.=" \n". + ' \n". " \n". " \n"; $exportformats=array( "0" => get_string("plaintext","wiki") , "1" => get_string("html","wiki")); /// Formats - $ret.=" \n". - ' \n". + $ret.=" \n". + ' \n". " \n". @@ -117,11 +120,11 @@ function moodle_ewiki_page_wiki_dump($id=0, $data=0, $action=0) { } } - $ret.=" \n". - ' \n". + $ret.=" \n". + ' \n". " \n". "
'.get_string("withbinaries","wiki").":
'.get_string("withbinaries","wiki").":\n". ' \n". "
'.get_string("withvirtualpages","wiki").":
'.get_string("withvirtualpages","wiki").":\n". ' \n". "
'.get_string("exportformats","wiki").":
'.get_string("exportformats","wiki").":\n"; if($wiki->htmlmode!=2) { $ret.= choose_from_menu($exportformats, "exportformats", $_REQUEST["exportformats"], "", "", "", true)."\n"; } else { - $ret.= ''. + $ret.= ''. get_string("html","wiki"); } $ret.="
'.get_string("exportto","wiki").":
'.get_string("exportto","wiki").":\n"; if(count($exportdestinations)==1) { - $ret.=''.$exportdestinations[0]."\n"; + $ret.=''.$exportdestinations[0]."\n"; } else { $ret.=choose_from_menu($exportdestinations, "exportdestinations", $_REQUEST["exportdestinations"], "", "", "", true)."\n"; } @@ -129,7 +132,7 @@ function moodle_ewiki_page_wiki_dump($id=0, $data=0, $action=0) { "
\n". ' '."\n". - "
\n"; + "\n"; "
\n"; return $ret; } diff --git a/mod/wiki/ewiki/plugins/moodle/wantedpages.php b/mod/wiki/ewiki/plugins/moodle/wantedpages.php index 6bb25f2705..dc3869da4f 100644 --- a/mod/wiki/ewiki/plugins/moodle/wantedpages.php +++ b/mod/wiki/ewiki/plugins/moodle/wantedpages.php @@ -19,11 +19,11 @@ function ewiki_page_wantedpages($id, $data, $action) { $refs .= $row["refs"]; } - #-- build array - $refs = array_unique(explode("\n", $refs)); + #-- build array + $refs = array_unique(explode("\n", $refs)); - #-- strip existing pages from array - $refs = ewiki_database("FIND", $refs); + #-- strip existing pages from array + $refs = ewiki_database("FIND", $refs); foreach ($refs as $id=>$exists) { if (EWIKI_PROTECTED_MODE && EWIKI_PROTECTED_MODE_HIDING && !ewiki_auth($row["id"], $uu, "view")) { continue; @@ -33,21 +33,33 @@ function ewiki_page_wantedpages($id, $data, $action) { } } - #-- print out - $o .= "