git-svn-id: http://svn.automattic.com/wordpress/trunk@2278 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2005-02-12 01:50:27 +00:00
parent 26831e298d
commit b3a97be613

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>";
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;";
};
$piece_of_code = htmlspecialchars( $piece_of_code );
?>
<h3><?php _e('File uploaded!') ?></h3>