Index: /MediaWiki/trunk/extensions/FCKeditor/FCKeditorSkin.body.php
===================================================================
--- /MediaWiki/trunk/extensions/FCKeditor/FCKeditorSkin.body.php	(revision 571)
+++ /MediaWiki/trunk/extensions/FCKeditor/FCKeditorSkin.body.php	(revision 572)
@@ -5,7 +5,22 @@
     private $skin;
 
+    /**
+     * Enter description here...
+     *
+     * @param Title $nt
+     * @param unknown_type $label
+     * @param unknown_type $alt
+     * @param unknown_type $align
+     * @param unknown_type $params
+     * @param unknown_type $framed
+     * @param unknown_type $thumb
+     * @param unknown_type $manual_thumb
+     * @param unknown_type $valign
+     * @return unknown
+     */
     function makeImageLinkObj( $nt, $label, $alt, $align = '', $params = array(), $framed = false,
     $thumb = false, $manual_thumb = '', $valign = '' )
     {
+        $orginal = $nt->getText();
         $img   = new Image( $nt );
         $imgName = $img->getName();        
@@ -18,7 +33,7 @@
         }
         else {
-            $ret .= "src=\"{$imgName}\" ";
             $ret .= "_fck_mw_valid=\"false"."\" ";
         }
+        $ret .= "_fck_mw_filename=\"{$orginal}\" ";
         
         if ($align) {
@@ -40,6 +55,9 @@
         }
 
-        if (!is_null($alt)) {
+        if (!is_null($alt) && strtolower($alt) != strtolower("Image:" . $orginal)) {
             $ret .= "alt=\"".htmlspecialchars($alt)."\" ";
+        }
+        else {
+            $ret .= "alt=\"\" ";
         }
         
