Index: /changelog
===================================================================
--- /changelog	(revision 7677)
+++ /changelog	(revision 7678)
@@ -340,2 +340,3 @@
 - Bugfix: Zur besseren Anpassbarkeit wurden die Bezeichnungen "Rechnung" und "Rechnungskorrektur" ins Template ausgelagert
 - Bugfix: Abo Modul ohne URL Benachrichtigung erzeugt keinen Fehler mehr
+- Bugfix: Kopieren von Bildern funktioniert auch ohne url_wrapper korrekt
Index: /controller/wpsg_ProduktController.class.php
===================================================================
--- /controller/wpsg_ProduktController.class.php	(revision 7677)
+++ /controller/wpsg_ProduktController.class.php	(revision 7678)
@@ -852,8 +852,13 @@
 				foreach ($arAttachments as $a_id) {
 					
-					$post = $this->db->fetchRow("SELECT * FROM `".$GLOBALS['wpdb']->prefix."posts` WHERE `ID`='".wpsg_q($a_id)."'");
-					$n_a_id = $ih->addImageToProduct($post['guid'], $new_id);
+					$attachment_file = \get_attached_file($a_id);
 					
-					if (wpsg_isSizedInt($n_a_id)) $GLOBALS['wpsg_product_copy_imagemapping'][$a_id] = $n_a_id;
+					if ($attachment_file !== false && file_exists($attachment_file)) {
+					 
+						$n_a_id = $ih->addImageToProduct($attachment_file, $new_id);
+											
+						if (wpsg_isSizedInt($n_a_id)) $GLOBALS['wpsg_product_copy_imagemapping'][$a_id] = $n_a_id;
+						
+					}
 					
 				}
