Fork me on GitHub
Subscribe 1

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'];
    $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).


Franz 2011-04-23 16:42:30

Commit b6a4ff1 to fluxbb fluxbb-1.4

#419: Fix first fallback language in admin panel.

Franz 2011-04-23 16:44:06

  • Status changed from open to fixed.

Et voilĂ . Fixed in b6a4ff1.