Ignore:
Timestamp:
10/19/08 12:10:12 (4 years ago)
Author:
hverton
Message:

updated the language pack code
fixed not being able to login when in maintenance mode
retro fix for rev1339 due to a bug in the v7.1 setup code
removed the .keys class from wikka.css, now uses the .button theme class

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        1 Copy of config.php 
        2 config.backup.php 
        3 _revision_.svn 
         1config.php 
  • trunk/administration/tools/language_pack_Nederlands.php

    r1858 r1871  
    37463746if (!defined('LP_COUNTRIES')) define('LP_COUNTRIES', "nl|be|sr|aw|an"); 
    37473747if (!defined('LP_VERSION')) define('LP_VERSION', "7.20"); 
    3748 if (!defined('LP_DATE')) define('LP_DATE', "1224253697"); 
     3748if (!defined('LP_DATE')) define('LP_DATE', "1224409123"); 
    37493749$lp_date = LP_DATE; 
    37503750 
     
    38183818                if (!CMS_CLI) $variables['message'] .= sprintf($locale['307'],LP_LOCALE, LP_LANGUAGE); 
    38193819            } 
     3820            // update the install timestamp in the config 
     3821            if (isset($settings['LanguagePack.'.LP_LANGUAGE])) { 
     3822                $result = dbquery("UPDATE ".$db_prefix."configuration SET cfg_value = '".LP_DATE."' WHERE cfg_name = 'LanguagePack.".LP_LANGUAGE."'"); 
     3823            } else { 
     3824                $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES ('LanguagePack.".LP_LANGUAGE."', '".LP_DATE."')"); 
     3825            } 
    38203826        } 
    38213827    } 
     
    38393845 
    38403846        // check the last update of the locale 
    3841         $variables['last_update'] = dbfunction("MAX(locales_datestamp)", "locales", "locales_code = '".LP_LOCALE."' AND locales_name NOT LIKE 'modules%'"); 
     3847        $variables['last_update'] = isset($settings['LanguagePack.'.LP_LANGUAGE]) ? $settings['LanguagePack.'.LP_LANGUAGE] : dbfunction("MAX(locales_datestamp)", "locales", "locales_code = '".LP_LOCALE."' AND locales_name NOT LIKE 'modules%'"); 
    38423848         
    38433849        // check if this language pack has been installed 
    38443850        $variables['can_install'] = dbcount("(*)", "locale", "locale_code = '".LP_LOCALE."'") == 0; 
    3845         $variables['can_remove'] = $variables['can_install'] ? FALSE : TRUE; 
    3846         $variables['can_upgrade'] = $variables['can_remove']; 
     3851        $variables['can_remove'] = LP_LOCALE != "en" && $variables['can_install'] == false; 
     3852        $variables['can_upgrade'] = $variables['can_install'] == false && $variables['last_update'] < LP_DATE; 
    38473853     
    38483854        // define the body panel variables 
Note: See TracChangeset for help on using the changeset viewer.