Ticket #419 (fixed bug)
First fallback language for admin panel is broken
- Created: 2011-04-23 16:40:03
- Reported by: Franz
- Assigned to: Franz
- Milestone: 1.4.6
- Component: localization
- Priority: high
Code in admin_common.php:
// Make sure we have a usable language pack for admin.
if (file_exists(PUN_ROOT.'lang/'.$pun_user['language'].'/admin_common.php'))
$admin_language = $pun_user['language'];
else if (file_exists(PUN_ROOT.'lang/'.$pun_config['o_default_lang'].'/admin_common.php'))
$admin_language = $pun_config['language'];
else
$admin_language = 'English';
If we ever get to the second condition, this will lead to an undefined index error and render the whole admin panel unusable (we use require).