Index: mod2/index.php
===================================================================
--- mod2/index.php (revision 29228)
+++ mod2/index.php (working copy)
@@ -690,8 +690,12 @@
} else { // DS was a file:
// XML file icon:
- $onClick = 'document.location=\'' . $this->doc->backPath . 'file_edit.php?target=' . rawurlencode(PATH_site . $dsR['path']) . '&returnUrl=' . rawurlencode(tx_templavoila_div::sanitizeLocalUrl(t3lib_div::getIndpEnv('REQUEST_URI'))) . '\';';
- $recordIcon = 'doc->backPath,'gfx/fileicons/xml.gif','width="18" height="16"').' alt="" class="absmiddle" />';
+ if (strpos($dsR['path'], 'EXT:') === FALSE) {
+ $onClick = 'document.location=\'' . $this->doc->backPath . 'file_edit.php?target=' . rawurlencode(PATH_site . $dsR['path']) . '&returnUrl=' . rawurlencode(tx_templavoila_div::sanitizeLocalUrl(t3lib_div::getIndpEnv('REQUEST_URI'))) . '\';';
+ $recordIcon = 'doc->backPath,'gfx/fileicons/xml.gif','width="18" height="16"').' alt="" class="absmiddle" />';
+ } else {
+ $recordIcon = 'doc->backPath,'gfx/fileicons/xml.gif','width="18" height="16"').' alt="" class="absmiddle" />';
+ }
// Preview icon:
if ($dsR['icon'] && $iconPath = t3lib_div::getFileAbsFileName($dsR['icon'])) {