From d7ab310a96183671bea312d15f5891d1c774f84a Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 24 Oct 2007 06:02:36 +0000 Subject: [PATCH] Moved fax formats from config to class fax account git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7636 594d385d-05f5-0310-b6e9-bd551577e9d8 --- contrib/gosa.conf | 6 ------ include/class_config.inc | 10 +--------- plugins/gofax/faxaccount/class_gofaxAccount.inc | 3 ++- 3 files changed, 3 insertions(+), 16 deletions(-) diff --git a/contrib/gosa.conf b/contrib/gosa.conf index 2018dd816..c50718481 100644 --- a/contrib/gosa.conf +++ b/contrib/gosa.conf @@ -529,11 +529,5 @@ admin="{$cv.admin}" password="{$cv.password}" /> - - - - - - diff --git a/include/class_config.inc b/include/class_config.inc index a60ae8e24..a9897f349 100644 --- a/include/class_config.inc +++ b/include/class_config.inc @@ -38,7 +38,7 @@ class config { /* Configuration data */ var $data= array( 'TABS' => array(), 'LOCATIONS' => array(), 'SERVERS' => array(), - 'MAIN' => array( 'FAXFORMATS' => array() ), + 'MAIN' => array(), 'MENU' => array(), 'SERVICE' => array()); var $basedir= ""; @@ -143,14 +143,6 @@ class config { } break; - /* Handle faxformat */ - case 'FAXFORMAT': - if ($this->tags[$this->level-2] == 'MAIN'){ - /* Add fax formats */ - $this->data['MAIN']['FAXFORMATS'][]= $attrs['TYPE']; - } - break; - /* Load main parameters */ case 'MAIN': $this->data['MAIN']= array_merge ($this->data['MAIN'], $attrs); diff --git a/plugins/gofax/faxaccount/class_gofaxAccount.inc b/plugins/gofax/faxaccount/class_gofaxAccount.inc index 42ab729ce..6fbb08dab 100644 --- a/plugins/gofax/faxaccount/class_gofaxAccount.inc +++ b/plugins/gofax/faxaccount/class_gofaxAccount.inc @@ -23,6 +23,7 @@ class gofaxAccount extends plugin var $goFaxSBlockgroups= array(); var $mail= ""; var $facsimileAlternateTelephoneNumber= array(); + var $fax_formats = array("pdf","ps","png","mtiff","tiff"); /* Internal variables */ var $printerList= array(); @@ -574,7 +575,7 @@ class gofaxAccount extends plugin /* Show main page */ $smarty->assign("languages", get_languages(TRUE)); - $smarty->assign("formats", $this->config->data['MAIN']['FAXFORMATS']); + $smarty->assign("formats", $this->fax_formats); $smarty->assign("printers", $this->printerList); /* Load attributes */ -- 2.30.2