From b0e7b3c0240c4fd82907d6dd609b708f0d15081f Mon Sep 17 00:00:00 2001 From: Julian Prud'homme Date: Tue, 24 Apr 2007 10:23:28 +0200 Subject: [PATCH] [svn r12095] Fix a display bug --- main/img/defaut_small.gif | Bin 0 -> 1062 bytes main/newscorm/learnpath.class.php | 11 ++++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 main/img/defaut_small.gif diff --git a/main/img/defaut_small.gif b/main/img/defaut_small.gif new file mode 100644 index 0000000000000000000000000000000000000000..6a8bb312bfd687eaec72c408f09853c35810acdd GIT binary patch literal 1062 zcmd^;TTfF50DzCP$xx#Mh8fud8E$}!5YbHIGPh7B8+4isacK77^-X=#2T62u*g~~Z zZpsRBYZ=nSFqFHvG3u__Xoc3Yrfm_<%w({8zAok z#>$FIzh1mzX|yz(o2(Y=wdSiftF7hQb-S&l^}4;SrM2DO*3sJD+17ERz4K)C1z5TZa`kZ|Oz5RoIz0RQlXTNi3aA?>yGUOiq^N*3Yx;=7x%snV8w}z8FpMopoJS9V1O!F{VIB;V?2;Ue2;m47f>Ahva9$+>(NPHHmsJqK zKv;rc27$3Kio;P>^Xh06hcE&`_z0@v2m#}i=37Nkfj}uGn1C@YO3)-mM{ym)MTBH1 zoI!{fPDm)l!n8~iEJ4Z`&85LKNhvtPGZaVBDogVyrxBb$GaAPT3`b+UPVyqd#&}j_ z1%?(RnPWswW<*8e6;@IOiI)YHlQmHm6j9Sffmd`%5d}3St5RH+G$p2JvZ%*XQcPFl zs;)?}gcetocrvA{?=l%nq~ghRBDIoSO=r@psg+DRvzmF6S;_owC`=mGtOqhcDe#te zPXJkOfK0B6laU*TpNRD47Jw*Ai^ zjY=QXZ`gA2kD$b<3<0Y-=0(*_AO}39}O(%*>#*&SWvcs-@YZlkq+~eK9l)KJl+4CPBxmPWlV?S=#+c0-| z8hLs(`?Kous&CBi{Qz#MX!KpEeNtCn@2a1w{ONRF$$_r?9l0yp&5i3e7gxAFgO!%| OHx(Glt$EqNSN{RKaTf#t literal 0 HcmV?d00001 diff --git a/main/newscorm/learnpath.class.php b/main/newscorm/learnpath.class.php index c7d355705a..6cad4085af 100644 --- a/main/newscorm/learnpath.class.php +++ b/main/newscorm/learnpath.class.php @@ -7105,11 +7105,16 @@ function display_thread_form($action = 'add', $id = 0, $extra_info = '') //It's a file if ($value['filetype'] == 'file') { if($num==0) $num=1; - //$return .= '\r\n"; - $icon = choose_image(trim($value['title'])); + + $icon = choose_image(trim($value['path'])); $position = strrpos($icon,'.'); $icon=substr($icon,0,$position).'_small.gif'; - $return .= '\r\n"; + + //value['path'] don't always have an extension so we must take the path to have the complete name with extension + $array_temp = explode('/',trim($value['path'])); + $document_name = $array_temp[count($array_temp)-1]; + + $return .= '\r\n"; array_shift($resources_array); } //It's a folder