From: hickert Date: Wed, 24 Oct 2007 06:00:17 +0000 (+0000) Subject: Removed FAX formats from config. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a1c91fa453455373751c90ae009d0e2216077e1c;p=gosa.git Removed FAX formats from config. They are now class members of class faxaccount git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7634 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_config.inc b/include/class_config.inc index 85c63b7be..92c875117 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= ""; @@ -176,14 +176,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 a36811e03..1376d088e 100644 --- a/plugins/gofax/faxaccount/class_gofaxAccount.inc +++ b/plugins/gofax/faxaccount/class_gofaxAccount.inc @@ -29,6 +29,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(); @@ -572,7 +573,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 */