Bug #3436
Problems with Localization
| Status: | Closed | Start date: | 2009-05-24 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | 2009-06-08 | |
| Assignee: | Marcus Krause | % Done: | 100% |
|
| Category: | XCLASSes | Spent time: | - | |
| Target version: | 0.2.9 | |||
| Votes: | 0 |
Description
When adding the ext to felogin localization of login form stops to work.
It seems to me, as if in some cases the used $LANG-Object in the xclass is generated but not initialized. (It is defined first, an then checked, if it is there).
A simple swap of two lines should fix the issue, if the definition of the variable gets into the if block:
In my case it may be some other Extension initializing it wrong, but to be protected against such errors.
--- class.ux_tx_felogin_pi1.php.orig 2009-05-24 14:57:55.000000000 0200
++ class.ux_tx_felogin_pi1.php 2009-05-24 14:56:38.000000000 +0200@ -60,8 +60,8 @
* @return string label text
*/
protected function getDisplayText($label, $stdWrapArray=array()) {
- global $LANG;
if (!$LANG) {
+ global $LANG;
$LANG = t3lib_div::makeInstance('language');
$LANG->init($GLOBALS['TSFE']->lang);
}
Associated revisions
[Bug 3436] Add a hook for modifying the salutation in the e-mails,r=oliver
History
Updated by Johannes Schlatow about 4 years ago
I can confirm this problem. The patch fixed it in my installation!
Updated by Marcus Krause about 4 years ago
- Status changed from New to Accepted
- Assignee set to Marcus Krause
Nice guys, thanks for the patch. I'll take care soon.
Updated by Marcus Krause about 4 years ago
- Due date set to 2009-06-08
- Category set to XCLASSes
- Status changed from Accepted to Resolved
- Target version set to 0.2.9
- % Done changed from 0 to 100
committed to branch RB-TER-DEV with changeset r21123
Updated by Marcus Krause about 4 years ago
- Status changed from Resolved to Closed
Issue resolved with extension version 0.2.9