Ignore:
Timestamp:
Aug 20, 2008, 2:35:22 AM (16 years ago)
Author:
rvelices
Message:
  • local.lang is loaded without fallback on default language or PHPWG_DEFAULT_LANGUAGE (needed to change the signature of load_language which became a little too big)
  • move a function from functions.inc.php to functions_picture.inc.php (included only when necessary)
  • removed some css (not as much as I wanted)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/language_switch/language_switch.inc.php

    r2299 r2479  
    5858  if ( $same !== $user['language'])
    5959  {
    60     load_language('common.lang', '', $user['language']);
    61     load_language('local.lang', '', $user['language']);
     60    load_language('common.lang', '', array('language'=>$user['language']) );
     61    load_language('local.lang', '', array('language'=>$user['language'], 'no_fallback'=>true) );
    6262    if (defined('IN_ADMIN') and IN_ADMIN)
    6363    {
    64       load_language('admin.lang', '', $user['language']);
     64      load_language('admin.lang', '', array('language'=>$user['language']) );
    6565    }
    6666  }
Note: See TracChangeset for help on using the changeset viewer.