You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
postfixadmin/model
Christian Boltz 4d9a338eb2 After hunting an "undefined index transport" error in list-domain, I
found out that the 'Config' class is too static - it shares its static
data with the 'Lang' child class. 

This caused a conflict because we have $CONF[transport] and 
$PALANG[transport], and Config::read('transport') returned the $PALANG 
text.

To fix this, all texts are now stored as $CONF[__LANG].
I also dropped the 'Lang' class.


model/Config.php:
- mark the 'Config' class as final to ensure we don't trap into the 
  "too static" problem again.
- bool(): display and log an error message if a $CONF option does not
  contain YES or NO (that would have uncovered this bug much earlier)
- add lang() and lang_f() wrapper functions to get $PALANG texts
- remove unused $__cache and $__objects

model/Lang.php:
- deleted

common.php:
- store $PALANG as $CONF[__LANG]

lots of files:
- replace Lang::read() and Lang::read_f() calls with Config::lang()
  and Config::lang_f()




git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1536 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
..
AdminHandler.php After hunting an "undefined index transport" error in list-domain, I 11 years ago
AdminpasswordHandler.php After hunting an "undefined index transport" error in list-domain, I 11 years ago
AliasHandler.php After hunting an "undefined index transport" error in list-domain, I 11 years ago
AliasdomainHandler.php After hunting an "undefined index transport" error in list-domain, I 11 years ago
CliEdit.php CliEdit.php: 11 years ago
Config.php After hunting an "undefined index transport" error in list-domain, I 11 years ago
DomainHandler.php After hunting an "undefined index transport" error in list-domain, I 11 years ago
MailboxHandler.php After hunting an "undefined index transport" error in list-domain, I 11 years ago
PFAHandler.php After hunting an "undefined index transport" error in list-domain, I 11 years ago
VacationHandler.php Merge jan-kruis's vacation interval reply behaviour - see SF patch 3508083 - https://sourceforge.net/tracker/?func=detail&aid=3508083&group_id=191583&atid=937966 ; Thank you 13 years ago