Changeset 2479 for trunk/plugins


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)
Location:
trunk/plugins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/add_index/main.normal.inc.php

    r2299 r2479  
    3434    {
    3535      $help_content =
    36         load_language('help/'.$page.'.html', $this->path, '', true);
     36        load_language('help/'.$page.'.html', $this->path, array('return'=>true) );
    3737    }
    3838    else
  • 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.