From: cajus
Date: Tue, 15 Apr 2008 13:22:42 +0000 (+0000)
Subject: Image is now loaded automatically
X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=613d3319841df56e85429fc6a8f427427c12a830;p=gosa.git
Image is now loaded automatically
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10474 594d385d-05f5-0310-b6e9-bd551577e9d8
---
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 22a4ab248..000000000
Binary files a/gosa-core/html/images/acl.png and /dev/null differ
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 000000000..40b868f91
Binary files /dev/null and b/gosa-core/html/plugins/acl/images/plugin.png differ
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;