Index: joomla.module =================================================================== --- joomla.module (revision 7) +++ joomla.module (working copy) @@ -726,12 +726,12 @@ //images if ($data_joomla->images) { - $joomla_teaser = replace_mos_image($data_joomla->images, $joomla_teaser); - $joomla_body = replace_mos_image($data_joomla->images, $joomla_body); + $joomla_teaser = joomla_replace_mos_image($data_joomla->images, $joomla_teaser); + $joomla_body = joomla_replace_mos_image($data_joomla->images, $joomla_body); } - $joomla_teaser = replace_image_link($joomla_teaser); - $joomla_body = replace_image_link($joomla_body); + $joomla_teaser = joomla_replace_image_link($joomla_teaser); + $joomla_body = joomla_replace_image_link($joomla_body); $node_revision->body = $joomla_body; $node_revision->teaser = $joomla_teaser; @@ -815,7 +815,7 @@ drupal_set_message(t('Processed @total content items (@new new, @updated updated, @failed errors)', array('@total' => $content_total, '@new' => $content_new, '@updated' => $content_updated, '@failed' => $content_failed))); } -function replace_mos_image($images_source, $text_source) { +function joomla_replace_mos_image($images_source, $text_source) { $joomla_img_folder = variable_get('joomla_img_folder', JOOMLA_IMG_FOLDER); $joomla_path = variable_get('joomla_path', JOOMLA_PATH); @@ -848,7 +848,7 @@ return $text_source; } -function replace_image_link($text_source) { +function joomla_replace_image_link($text_source) { //Fixs image string: src="images/ $image_string = 'src="images/'; $images_replace = 'src="'. base_path() . file_directory_path() .'/'. $joomla_img_folder;