git-svn-id: https://develop.svn.wordpress.org/trunk@2278 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2005-02-12 01:50:27 +00:00
parent dd7a83f22c
commit 600e35ca33
1 changed files with 5 additions and 7 deletions

View File

@ -195,14 +195,12 @@ die();
} }
} }
if ( ereg('image/',$img1_type) )
$piece_of_code = "<img src=';". get_settings('fileupload_url') ."/$img1_name' alt='$imgdesc' />";
else
$piece_of_code = "<a href='". get_settings('fileupload_url') . "/$img1_name' title='$imgdesc'>$imgdesc</a>";
$piece_of_code = htmlspecialchars( $piece_of_code );
if ( ereg('image/',$img1_type)) {
$piece_of_code = "&lt;img src=&quot;". get_settings('fileupload_url') ."/$img1_name&quot; alt=&quot;$imgdesc&quot; /&gt;";
} else {
$piece_of_code = "&lt;a href=&quot;". get_settings('fileupload_url') . "/$img1_name&quot; title=&quot;$imgdesc&quot; &gt;$imgdesc&lt;/a&gt;";
};
?> ?>
<h3><?php _e('File uploaded!') ?></h3> <h3><?php _e('File uploaded!') ?></h3>