Diff for Metafox/functions.inc.php between version 1.83 and 1.84
| version 1.83, 2009/07/02 20:14:12 |
version 1.84, 2009/07/04 14:57:17 |
| Line 194 function ezin_handle_special_tags(&$str, |
|
| Line 194 function ezin_handle_special_tags(&$str, |
|
| $new_file = ezin_scale_upload_image($old_file, $width); |
$new_file = ezin_scale_upload_image($old_file, $width); |
| if ($new_file != false && $new_file != $old_file) { |
if ($new_file != false && $new_file != $old_file) { |
| if ($is_link) { |
if ($is_link) { |
| |
$pattern[] = '|<image-link\s+'.$old_file.'([^<>]*)width='.$width.'([^<>]*)>([^<>]*)</image-link>|i'; |
| |
$replace[] = "<repository-link $old_file><image $new_file\\1\\2>\\3</image></repository-link>"; |
| $pattern[] = '|<image-link\s+'.$old_file.'([^<>]*)width='.$width.'([^<>]*)>|i'; |
$pattern[] = '|<image-link\s+'.$old_file.'([^<>]*)width='.$width.'([^<>]*)>|i'; |
| $replace[] = "<repository-link $old_file><image $new_file\\1\\2></repository-link>"; |
$replace[] = "<repository-link $old_file><image $new_file\\1\\2></repository-link>"; |
| |
$mask .= 'R'; |
| } else { |
} else { |
| $pattern[] = '|<image\s+'.$old_file.'([^<>]*)width='.$width.'([^<>]*)>|i'; |
$pattern[] = '|<image\s+'.$old_file.'([^<>]*)width='.$width.'([^<>]*)>|i'; |
| $replace[] = "<image $new_file\\1\\2>"; |
$replace[] = "<image $new_file\\1\\2>"; |
Platon Group <platon@platon.org> http://platon.org/
|
|