From: psc Date: Fri, 26 Jun 2009 09:01:23 +0000 (+0000) Subject: Remove the double function X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f4ff605ae7e6be77d324afae6560c9dd3dfc2c3e;p=gosa.git Remove the double function Add the modeline again, which got lost in the las commit git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13799 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/trunk/gosa-core/include/class_plugin.inc b/trunk/gosa-core/include/class_plugin.inc index bdf87cde3..b96d78f1a 100644 --- a/trunk/gosa-core/include/class_plugin.inc +++ b/trunk/gosa-core/include/class_plugin.inc @@ -1132,36 +1132,6 @@ class plugin } } - function getGosaUnitTag() { - $dn = $this->dn; - $len = strlen($dn); - @DEBUG (DEBUG_TRACE, __LINE__, __FUNCTION__, __FILE__, "No tag for $dn - looking for one...", "Tagging"); - $relevant = array(); - foreach ($this->config->adepartments as $key => $ntag){ - /* This one is bigger than our dn, its not relevant... */ - if ($len < strlen($key)){ - continue; - } - - /* This one matches with the latter part. Break and don't fix this entry */ - if (preg_match('/(^|,)'.preg_quote($key, '/').'$/', $dn)){ - @DEBUG (DEBUG_TRACE, __LINE__, __FUNCTION__, __FILE__, "DEBUG: Possibly relevant: $key", "Tagging"); - $relevant[strlen($key)]= $ntag; - continue; - } - } - - /* If we've some relevant tags to set, just get the longest one */ - if (count($relevant)){ - ksort($relevant); - $tmp= array_keys($relevant); - $idx= end($tmp); - $tag= $relevant[$idx]; - } - - return $tag; - } - function get_gosaUnitTag($dn = "") { if ($dn == "") { @@ -2125,5 +2095,5 @@ class plugin return(isset($this->dialog) && $this->dialog); } } - +// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?>