From 7c1e16193fdc7ee8237a732787ea9d3d84dff14b Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 5 Jan 2010 08:33:34 +0000 Subject: [PATCH] Fixed Blocklist handling git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15033 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../gofax/gofax/blocklists/class_blocklistGeneric.inc | 2 +- .../gofax/gofax/blocklists/class_blocklistManagement.inc | 2 -- gosa-plugins/gofax/gofax/blocklists/generic.tpl | 9 --------- 3 files changed, 1 insertion(+), 12 deletions(-) diff --git a/gosa-plugins/gofax/gofax/blocklists/class_blocklistGeneric.inc b/gosa-plugins/gofax/gofax/blocklists/class_blocklistGeneric.inc index 865e7c7fe..c1701053b 100644 --- a/gosa-plugins/gofax/gofax/blocklists/class_blocklistGeneric.inc +++ b/gosa-plugins/gofax/gofax/blocklists/class_blocklistGeneric.inc @@ -68,7 +68,7 @@ class blocklistGeneric extends plugin $this->base= dn2base($ui->dn); } } else { - $this->base =preg_replace ("/^[^,]+,[^,]+,[^,]+,/","",$this->dn); + $this->base= preg_replace ("/^[^,]+,".preg_quote(get_ou("faxBlocklistRDN"), '/')."/i", "", $this->dn); } $this->orig_base = $this->base; diff --git a/gosa-plugins/gofax/gofax/blocklists/class_blocklistManagement.inc b/gosa-plugins/gofax/gofax/blocklists/class_blocklistManagement.inc index a3df52fb4..d04958a42 100644 --- a/gosa-plugins/gofax/gofax/blocklists/class_blocklistManagement.inc +++ b/gosa-plugins/gofax/gofax/blocklists/class_blocklistManagement.inc @@ -33,8 +33,6 @@ class blocklistManagement extends management protected $aclPlugin = "blocklistGeneric"; protected $objectName = "blocklist"; - protected $skipFooter = TRUE; - function __construct($config,$ui) { $this->config = $config; diff --git a/gosa-plugins/gofax/gofax/blocklists/generic.tpl b/gosa-plugins/gofax/gofax/blocklists/generic.tpl index 11e6b56e2..157b29b7b 100644 --- a/gosa-plugins/gofax/gofax/blocklists/generic.tpl +++ b/gosa-plugins/gofax/gofax/blocklists/generic.tpl @@ -95,15 +95,6 @@ -

- {if !$read_only} - - {if $dn != "new"} - - {/if} - {/if} - -