Changeset 20325


Ignore:
Timestamp:
Jan 22, 2013, 4:12:48 PM (8 years ago)
Author:
mistic100
Message:

feature:2823 Add triggers for login system, load function_plugins before function_user

File:
1 edited

Legend:

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

    r19703 r20325  
    2222// +-----------------------------------------------------------------------+
    2323
     24include_once( PHPWG_ROOT_PATH .'include/functions_plugins.inc.php' );
    2425include_once( PHPWG_ROOT_PATH .'include/functions_user.inc.php' );
    2526include_once( PHPWG_ROOT_PATH .'include/functions_cookie.inc.php' );
     
    2930include_once( PHPWG_ROOT_PATH .'include/functions_tag.inc.php' );
    3031include_once( PHPWG_ROOT_PATH .'include/functions_url.inc.php' );
    31 include_once( PHPWG_ROOT_PATH .'include/functions_plugins.inc.php' );
    3232include_once( PHPWG_ROOT_PATH .'include/derivative_params.inc.php');
    3333include_once( PHPWG_ROOT_PATH .'include/derivative_std_params.inc.php');
     
    12571257  }
    12581258  $target_charset = strtolower($target_charset);*/
    1259   $source_file    = '';
     1259  $source_file       = '';
     1260  $selected_language = '';
    12601261  foreach ($languages as $language)
    12611262  {
     
    12661267    if (file_exists($f))
    12671268    {
     1269      $selected_language = $language;
    12681270      $source_file = $f;
    12691271      break;
     
    12821284      if ( !isset($lang) ) $lang=array();
    12831285      if ( !isset($lang_info) ) $lang_info=array();
     1286     
     1287      $parent_language = !empty($load_lang_info['parent']) ? $load_lang_info['parent'] : (
     1288                            !empty($lang_info['parent']) ? $lang_info['parent'] : null );
     1289      if (!empty($parent_language))
     1290      {
     1291        @include(str_replace($selected_language, $parent_language, $source_file));
     1292      }
    12841293
    12851294      /* Note: target charset is always utf-8
Note: See TracChangeset for help on using the changeset viewer.