HomeHelpTrac

Changeset 14169 for trunk/administration


Ignore:
Timestamp:
08/02/10 04:27:33 (22 months ago)
Author:
Leonid Sokushev
Message:

1) Add some checking for imported langs (if user wants a copy direct lang file from another site)
2) getLoggedId for map module

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/administration/lang_file.php

    r14128 r14169  
    545545     
    546546    require_once($sTmpPath); 
     547     
     548    $aLangInfo = isset($aLangInfo) ? $aLangInfo : $LANG_INFO; 
     549    $aLangContent = isset($aLangContent) ? $aLangContent : $LANG; 
     550    if (empty($aLangInfo) || empty($aLangContent)) { 
     551        return '_adm_txt_langs_cannot_create'; 
     552    } 
    547553 
    548554    $mixedResult = $MySQL->query("INSERT INTO `sys_localization_languages` (`Name`, `Flag`, `Title`) VALUES ('" . $aLangInfo['Name'] . "', '" . $aLangInfo['Flag'] . "', '" . $aLangInfo['Title'] . "')"); 
Note: See TracChangeset for help on using the changeset viewer.