From: hickert Date: Thu, 14 Jun 2007 12:16:11 +0000 (+0000) Subject: Updated mime copy & paste X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e01ecb8a73724cd3afe3fe4f603500aa6e935b0f;p=gosa.git Updated mime copy & paste git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6591 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/mimetypes/class_mimetypeGeneric.inc b/plugins/admin/mimetypes/class_mimetypeGeneric.inc index df8c0d839..e7585c90b 100644 --- a/plugins/admin/mimetypes/class_mimetypeGeneric.inc +++ b/plugins/admin/mimetypes/class_mimetypeGeneric.inc @@ -707,12 +707,20 @@ class mimetype extends plugin $source_o = new mimetype($this->config,$source['dn'],$this->parent); - foreach(array("gotoMimeEmbeddedApplication","gotoMimeApplication","gotoMimeFilePattern","use_gotoMimeFilePattern") as $name){ + foreach(array("gotoMimeLeftClickAction_Q","gotoMimeEmbeddedApplication","gotoMimeApplication","gotoMimeFilePattern","gotoMimeIcon","iconData") as $name){ + $use_attr = "use_".$name; + if(isset($this->$use_attr)){ + $this->$use_attr= $source_o->$use_attr; + } $this->$name = $source_o->$name; } foreach($this->attributes as $name){ $this->$name = $source_o->$name; - } + } + + if($this->iconData){ + $this->use_gotoMimeIcon ="Not emtpy, causes icon to be written."; + } } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: diff --git a/plugins/admin/mimetypes/class_mimetypeManagement.inc b/plugins/admin/mimetypes/class_mimetypeManagement.inc index 793d76961..45f633425 100755 --- a/plugins/admin/mimetypes/class_mimetypeManagement.inc +++ b/plugins/admin/mimetypes/class_mimetypeManagement.inc @@ -498,6 +498,8 @@ class mimetypeManagement extends plugin /* In case of subsearch, add the subsearch flag */ if($SubSearch){ $Flags |= GL_SUBSEARCH; + }else{ + $use_base ="ou=mime,".$use_base; } /* Get results and create index */