Skip to content

Commit

Permalink
MDL-13292 <Vspan> tag on the bottom of the wiki HTML Editor fixed; me…
Browse files Browse the repository at this point in the history
…rged from MOODLE_19_STABLE
  • Loading branch information
skodak committed Feb 5, 2008
1 parent 4be54ba commit 7019314
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions mod/wiki/ewiki/ewiki.php
@@ -1,4 +1,5 @@
<script language="PHP"> @define("EWIKI_VERSION", "R1.01d");
<?php
@define("EWIKI_VERSION", "R1.01d");

/*
Expand Down Expand Up @@ -591,6 +592,9 @@ function ewiki_page($id=false) {
if ($pf_a = $ewiki_plugins["page_final"]) {
ksort($pf_a);
foreach ($pf_a as $pf) {
if ($action == 'edit' and $pf == 'ewiki_html_tag_balancer') {
continue; // balancer breaks htmlarea buttons
}
$pf($o, $id, $data, $action);
}
}
Expand Down Expand Up @@ -2564,7 +2568,6 @@ function ewiki_binary($break=0) {
$do = "nop";
}
}


#-- auth only happens when enforced with _PROTECTED_MODE_XXL setting
# (authentication for inline images in violation of the WWW spirit)
Expand All @@ -2574,7 +2577,6 @@ function ewiki_binary($break=0) {

#-- upload an image
if ($do == "upload"){

$id = ewiki_binary_save_image($upload_file["tmp_name"], "", $return=0, $add_meta);
@unlink($upload_file["tmp_name"]);
($title = trim($orig_name, "/")) && ($title = preg_replace("/[^-._\w\d]+/", "_", substr(substr($orig_name, strrpos($title, "/")), 0, 20)))
Expand Down Expand Up @@ -3586,6 +3588,4 @@ function ewiki_database_mysql($action, &$args, $sw1, $sw2) {
return($r);
}



</script>
?>

0 comments on commit 7019314

Please sign in to comment.