mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2026-11-20 23:43:26 +03:00
Make $struct in the *Handler classes customizeable
config.inc.php: - add $CONF['*_struct_hook'] to modify $struct in the *Handler classes PFAHandler.php: - call $CONF['*_struct_hook'] hook AdminHandler.php, AliasdomainHandler.php, DomainHandler.php: - remove now outdated TODO notes git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1303 a1433add-5e2c-0410-b055-b7f2511e0802
This commit is contained in:
1 parent
6eb7e9f794
commit
18b8564b64
5 files changed
+44
-6
No files matched your search
@@ -40,6 +40,12 @@ class PFAHandler {
|
||||
}
|
||||
|
||||
$this->initStruct();
|
||||
|
||||
$struct_hook = Config::read($this->db_table . '_struct_hook');
|
||||
if ( $struct_hook != 'NO' && function_exists($struct_hook) ) {
|
||||
$this->struct = $struct_hook($this->struct);
|
||||
}
|
||||
|
||||
$this->initMsg();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user