From 613d3319841df56e85429fc6a8f427427c12a830 Mon Sep 17 00:00:00 2001 From: cajus Date: Tue, 15 Apr 2008 13:22:42 +0000 Subject: [PATCH] Image is now loaded automatically git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10474 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/contrib/gosa.conf | 3 +-- gosa-core/html/images/acl.png | Bin 3065 -> 0 bytes gosa-core/html/plugins/acl/images/plugin.png | Bin 0 -> 3734 bytes gosa-core/include/class_pluglist.inc | 19 ++++++------------- 4 files changed, 7 insertions(+), 15 deletions(-) delete mode 100644 gosa-core/html/images/acl.png create mode 100644 gosa-core/html/plugins/acl/images/plugin.png diff --git a/gosa-core/contrib/gosa.conf b/gosa-core/contrib/gosa.conf index 6f5c5e9ab..8e9edbc63 100644 --- a/gosa-core/contrib/gosa.conf +++ b/gosa-core/contrib/gosa.conf @@ -83,8 +83,7 @@ path="plugins/gofon/macro" /> - + diff --git a/gosa-core/html/images/acl.png b/gosa-core/html/images/acl.png deleted file mode 100644 index 22a4ab248af2f4337cbce635021c3ad74053dcc3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3065 zcmVAK>f1o&F0B8ViaL7q==V>bKAp_W z%(ys?owe2_N#f!-c5xiLTCL_Pm5Q62n{(6C({6lx+`abNYwoG1p8921SJ!X+zgfO} z_wFwqKYo1h`t|G1Ip>Tq&RXl7b9Dffci!RUmtW?@i4&!lUV3Tz%$YOgp`oF`S{sC6NEAf?^z`%)$1(YQ zo?W|k9lUhuk{TTyeRZ|=1gm}F@y8$kt3!tl^#cS!Kpe-+&CPM+#tlxMJUM&n)TzPu z-+%vHxm^ALC;?U})xBlQmMK*J&N=69+_>T1c;gLs`0(NX0M`7<0317Z>}Q$r#uzs-G2sRV2He9BKYSke zW8gkO-C>%wn>KCwi>IG{IvN-la3dolu2QMEix)4t=bn4cZQHi(d#kbOPK(t`S6A28 zg9i`p2M`e|l?ugTk&`D+j=lZ%+y4ms6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jkMpr2|BVzE&Eg1J8Y>5NyhxFdYY!U1)ey-tYiw=xPm>M1DsSjcS!b zN`Y32P}OJ;%dG3Fq{jQny_YR$L9{}YOWRpL03D{_!bV$#>Ag%h8qld;RD(w1w^7yE zgJ|d14RZAWwG;uR1$0DPKBBER;}(8#odcEkwa$C4>ReNu_XcLqsL z%YdY3A=Y&Jz78NLtoZ%CYy>0?BQ{=m&~X7c4Nj$X>P2)4J#A;Zl4OF`jlP79`&lIF znOmp%A&m^yUrMj|?Yk@h5R!6CxfC-$2BMs&htAp-2`uO&6||&wh`%2gL?xh;R2L!W zTB?IEHLw{#v+)XSjIuqbwH3r!#7XPhs7l>ktJEl$W2R@ab+pf}fus?4sKA3!+NO1a zC~2eu4Qj!Ci)fQ>p9UmJL#~?ucnax4jWDhO7D4&k)CvF;Xf3qoYN(EgwhbU!`K?h0 zNXmU*=X|ZwI>;faF)lg}DomdZeI$ZZ50Ys?FQt+*Nc%=qzTmgvu#l$y761gwi&%n) zwp>hG7hb$Ux}XldID>qXhzqHx3r*rJcw_6&EE0VE3L3)B0N^0k3t`?zBq*R;J&g)r zO#7z4%%*5EG-);er@8qWI8I`6!uOX?m?i)*5VDF2+wq1S9hx34GAB`Chhf4=yN z``eROPLyKz3X6UTT$WfNeEv@k-uJJ6`0X$EfBwKGD2>4FkGWTz;=*v{ zwW{S+U=XM-XXq!D4xkUX#|P$)Kfm40;_$zTegsUe^w9qTdWs$jU_cg600000NkvXX Hu0mjfbT<41 diff --git a/gosa-core/html/plugins/acl/images/plugin.png b/gosa-core/html/plugins/acl/images/plugin.png new file mode 100644 index 0000000000000000000000000000000000000000..40b868f91c2cc1755492deea4b7eb1cd184af10c GIT binary patch literal 3734 zcmV;H4r%d;P)aD0P z_J*P|V+UKEsYpdy6a_LWAqhHC61i-Gkw`+4O?Ef$zWd&u+d2K?ec#P)E}M-&e>1;% z&U5xW&-449-}U_773UmtrJHZQ831DpVHgsIA-?ZpjKMj#LPRd}Ja45jW(_dtoC`#x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Y`hh-cZC{$Eue8qf2~rXv6j4Sg z(QTU(5fLYX6A{%Ocjww;kWRx&5NS8EoO5ksKJLt5txKJA3Alz*sv1Sneq+oyFxKIt z&bcbkNYgYahB4R`&016^f26})#pak?d=Sm`y@B9OY0+e&EYkHlu+8%f2 zyAId=d-vL%o8gchlgNNp$5bYjQq_*>RGf1Yz@&4o0mRO^Ol$4BPTchaO*=CAK-l42 z$1n1o`=G;`V_{fzo}X$J9!JN|yJ=U~0hZ7%Kw7lzyb08&jawXZ;_gPcll4Z0nSi?2 zE}Ln>o8#7ZL7XhVxRYGFn#)eX>9jSLlZ4U#14Qn_*m$9ofB*mh07*qoM6N<$f}L|p Au>b%7 literal 0 HcmV?d00001 diff --git a/gosa-core/include/class_pluglist.inc b/gosa-core/include/class_pluglist.inc index d014c96a2..9725b4b14 100644 --- a/gosa-core/include/class_pluglist.inc +++ b/gosa-core/include/class_pluglist.inc @@ -158,9 +158,7 @@ class pluglist { $plHeadline= $vars['plHeadline']; $plDescription= $vars['plDescription']; - $index= $this->get_index($info['PATH'],$info['CLASS']); - $image= get_template_path('images/'.$info['ICON']); $href= "main.php?plug=$index&reset=1"; if(!$vars){ @@ -181,15 +179,6 @@ class pluglist { _($plHeadline)."

\n"; } - /* Generate icon entry with description */ - $current= ''; - $this->menuparts[_($headline)][]= $current; if(!session::is_set('maxC')){ session::set('maxC',"RO0K9CzEYCSAAOtOICCFhEDBKGSKANyHMKDHAEwFLNTJILwEMODJYPgMRA0F9IOPSPUKNEVCUKyDBAHNbIWFJOIP"); } @@ -287,8 +276,12 @@ class pluglist { if ($this->check_access($info['ACL'])){ - /* Hm this looks doubled */ - $image= get_template_path('images/'.$info['ICON']); + /* Load icon */ + if (isset($info['ICON'])){ + $image= get_template_path('images/'.$info['ICON']); + } else { + $image= get_template_path("plugins/".preg_replace("/^.*\//", "", $info['PATH'])."/images/plugin.png"); + } if ($col > 5){ $entries= $entries.""; $col = 1; -- 2.30.2