Fixing warning that can break uploads.

This commit is contained in:
mchurch
2007-12-19 00:04:05 +00:00
parent 51f2cdd803
commit 3dc3b31e77
+3 -4
View File
@@ -858,8 +858,7 @@ function ewiki_script($asid="", $id=false, $params="", $bin=0, $html=1, $script=
if (strlen($params)) {
$url .= (strpos($url,"?")!==false ? "&":"?") . $params;
}
#-- fin
#-- fin
if ($html) {
//Don't replace & if it's part of encoded character (bug 2209)
@@ -1779,7 +1778,7 @@ function ewiki_format (
unset($htmlentities["&"]);
#-- pre-processing plugins (working on wiki source)
foreach ($pf_source as $pf) $pf(&$iii[0][0]);
if ($pf_source = $ewiki_plugins["format_source"]) {
foreach ($pf_source as $pf) $pf($iii[0][0]);
}
@@ -2447,7 +2446,7 @@ function ewiki_link_regex_callback($uu, $force_noimg=0) {
}
}
$align = array('', ' align="right"', ' align="left"', ' align="center"');
$str = ($obj ? '<embed width="70%"' : '<img') . ' src="' . $href . '"' .
$align = $align[$spaces_l + 2*$spaces_r];
$str = ($obj ? '<embed width="70%"' : '<img') . ' src="' . $href . '"' .
' alt="' . ($title) . '"' .
(@$states["titled"] ? ' title="' . ($title) . '"' : '').