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.
4d9a338eb2
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 | 11 years ago | |
AdminpasswordHandler.php | 11 years ago | |
AliasHandler.php | 11 years ago | |
AliasdomainHandler.php | 11 years ago | |
CliEdit.php | 11 years ago | |
Config.php | 11 years ago | |
DomainHandler.php | 11 years ago | |
MailboxHandler.php | 11 years ago | |
PFAHandler.php | 11 years ago | |
VacationHandler.php | 13 years ago |