diff --git a/main/document/document.inc.php b/main/document/document.inc.php
index e38da3769a..2e5f66bf2e 100755
--- a/main/document/document.inc.php
+++ b/main/document/document.inc.php
@@ -176,7 +176,13 @@ function create_document_link($www, $title, $path, $filetype, $size, $visibility
}
return ''.$title.''.$force_download_html;
} else {
+ if(preg_match('/shared_folder/', urldecode($url)) && preg_match('/shared_folder$/', urldecode($url))==false){
+ return ''.Display::return_icon('shared.png', get_lang('ResourceShared'), array('hspace' => '5', 'align' => 'middle', 'height' => 22, 'width' => 22)).build_document_icon_tag($filetype, $tooltip_title).'';
+ }
+ else
+ {
return ''.build_document_icon_tag($filetype, $tooltip_title).'';
+ }
}
}