#4 - SampleLicenseAddon has $language instead of $current_language

Closed Bug? created by blak3r 12 years ago

In the method below, the $language variable isn't defined. I believe it should be set to $current_language. (SampleLicenseAddon)

  protected static function loadLicenseStrings()
    {
        global $sugar_config, $currentModule;

        //load license config file....if it isn't broken don't fix it
        $default_language = $sugar_config['default_language'];

        $langs = array();
    **  if ($language != 'en_us') { **
            $langs[] = 'en_us';
        }
        if ($default_language != 'en_us' && $language != $default_language) {
            $langs[] = $default_language;
        }
        $langs[] = $language;

  1. jason member avatar

    jason Provider

    12 years ago

    You're exactly right. Fixed and updated SampleLicenseAddon.zip.

This case is public. Please leave out any sensitive information such as URLs, passwords, etc.
Saving Comment Saving Comment...