Added Email link when updating documents.
[fa-stable.git] / includes / lang / language.php
index 54302ebe5a1fe887ff1359a3ae51a633d865fbfb..1ec47d17766321e07abd07f3c808d3337e4622b3 100644 (file)
@@ -50,8 +50,8 @@ class language
        {
            global $path_to_root, $installed_languages;
 
-               $changed = $this->code != $code;
                $lang = array_search_value($code, $installed_languages, 'code');
+               $changed = $this->code != $code || $this->version != @$lang['version'];
 
                if ($lang && $changed)
                {
@@ -61,7 +61,7 @@ class language
                        $this->name = $lang['name'];
                        $this->code = $lang['code'];
                        $this->encoding = $lang['encoding'];
-                       $this->version = $lang['version'];
+                       $this->version = @$lang['version'];
                        $this->dir = isset($lang['rtl']) ? 'rtl' : 'ltr';
                        $locale = $path_to_root . "/lang/" . $this->code . "/locale.inc";
                        $this->is_locale_file = file_exists($locale);