Ignore:
Timestamp:
Mar 21, 2010, 12:14:30 AM (14 years ago)
Author:
patdenice
Message:

feature 1522: Move local css local files and local language files to local directory.
Add $conftemplate_force_compile to help developpers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions.inc.php

    r5200 r5208  
    584584    load_language('common.lang');
    585585    trigger_action('loading_lang');
    586     load_language('local.lang', '', array('no_fallback'=>true) );
     586    load_language('lang', PHPWG_ROOT_PATH.'local/', array('no_fallback'=>true, 'local'=>true) );
    587587    $template = new Template(PHPWG_ROOT_PATH.'themes', get_default_theme());
    588588  }
     
    11691169 *     target_charset -
    11701170 *     no_fallback - the language must be respected
     1171 *     local - if true, get local language file
    11711172 * @return boolean success status or a string if options['return'] is true
    11721173 */
     
    12181219  foreach ($languages as $language)
    12191220  {
    1220     $f = $dirname.$language.'/'.$filename;
     1221    $f = @$options['local'] ?
     1222      $dirname.$language.'.'.$filename:
     1223      $dirname.$language.'/'.$filename;
     1224
    12211225    if (file_exists($f))
    12221226    {
Note: See TracChangeset for help on using the changeset viewer.