diff --git a/plugins/admin/systems/class_goSpamServer.inc b/plugins/admin/systems/class_goSpamServer.inc
index 55781fbbac9046696acae00253d9bf27a2f26d70..e62bb401be229d9575c75890ed13e2342fb01ca9 100644 (file)
<?php
-require_once("class_goService.inc");
-
class gospamserver extends goService{
/* CLI vars */
var $saFlagsD = false;
var $saFlagsP = false;
- var $dialog = NULL;
var $ui = NULL;
var $acl = NULL;
var $view_logged =FALSE;
- function gospamserver($config,$dn, $parent= NULL)
+ function gospamserver(&$config,$dn, $parent= NULL)
{
/* Init class */
goService::goService($config,$dn, $parent);
if($this->is_account && !$this->view_logged){
$this->view_logged = TRUE;
- @log::log("view","server/".get_class($this),$this->dn);
+ new log("view","server/".get_class($this),$this->dn);
}
/* If displayed, it is ever true*/
/* Cancel adding/editing specified rule */
if(isset($_POST['CancelRule'])){
- $this->dialog = NULL;
+ $this->dialog = FALSE;
}
/* Handle post to delete rules */
unset($this->Rules[$ret['orig_name']]);
}
$this->Rules[$ret['name']] = $ret['rule'];
- $this->dialog = NULL;
+ $this->dialog = FALSE;
}
}
}
if($this->initially_was_account){
$this->handle_post_events("modify");
- @log::log("modify","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+ new log("modify","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
}else{
$this->handle_post_events("add");
- @log::log("create","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+ new log("create","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
}
show_ldap_error($ldap->get_error(), sprintf(_("Saving of server services/spamassassin with dn '%s' failed."),$this->dn));