Subversion Repositories Applications.papyrus

Compare Revisions

Ignore whitespace Rev 1341 → Rev 1342

/trunk/papyrus/pap_initialise_info.inc.php
21,7 → 21,7
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// | |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: pap_initialise_info.inc.php,v 1.30 2007-04-19 15:34:35 neiluj Exp $
// CVS : $Id: pap_initialise_info.inc.php,v 1.31 2007-04-19 16:54:52 ddelon Exp $
/**
*Initialisation de Papyrus : vérification et récupération de paramètres généraux.
*
41,7 → 41,7
*@author Alexandre GRANIER <alex@tela-botanica.org>
*@author Laurent COUDOUNEAU <laurent.coudouneau@ema.fr>
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.30 $ $Date: 2007-04-19 15:34:35 $
*@version $Revision: 1.31 $ $Date: 2007-04-19 16:54:52 $
// +------------------------------------------------------------------------------------------------------+
*/
 
331,11 → 331,21
// Si le résultat de la négociation de l'internationalisation donne une langue différente
// de celle du site principal, nous récupérons les éventuelles valeurs traduite pour le site.
 
if ($_GEN_commun['i18n'] != $_GEN_commun['info_site']->gs_ce_i18n) {
$id_langue = $GLOBALS['_GEN_commun']['i18n'];
 
if (isset($id_langue) && ($id_langue!='')) {
$langue_test=$id_langue;
} else {
$langue_test=GEN_I18N_ID_DEFAUT;
}
 
if ($langue_test!=GEN_I18N_ID_DEFAUT) {
// Récupération des informations sur la traduction du site
$requete = 'SELECT * '.
'FROM gen_site '.
'WHERE gs_ce_i18n = "'.$_GEN_commun['i18n'].'"';
'WHERE gs_ce_i18n = "'.$langue_test.'" '.
'AND gs_code_num = "'.$_GEN_commun['info_site']->gs_code_num.'"';
// 'WHERE gs_ce_i18n = "'.$_GEN_commun['i18n'].'" '.
// 'AND gs_code_alpha = "'.$_GEN_commun['info_site']->gs_code_alpha.'"';
 
353,11 → 363,12
// Si le résultat de la négociation de l'internationalisation donne une langue différente
// de celle du menu, nous récupérons les éventuelles valeurs traduite pour le menu.
 
if ((isset($_GEN_commun['info_menu'])) && ($_GEN_commun['i18n'] != $_GEN_commun['info_menu']->gm_ce_i18n)) {
if ($langue_test!=GEN_I18N_ID_DEFAUT) {
// Récupération des informations sur la traduction du menu
$requete = 'SELECT * '.
'FROM gen_menu '.
'WHERE gm_ce_i18n = "'.$_GEN_commun['i18n'].'" ;';
'WHERE gm_ce_i18n = "'.$langue_test.'" '.
'AND gm_code_num = "'.$_GEN_commun['info_menu']->gm_code_num.'"';
// 'WHERE gm_ce_i18n = "'.$_GEN_commun['i18n'].'" '.
// 'AND gm_code_alpha = "'.$_GEN_commun['info_menu']->gm_code_alpha.'"';
 
486,6 → 497,9
 
/* +--Fin du code ---------------------------------------------------------------------------------------+
* $Log: not supported by cvs2svn $
* Revision 1.30 2007/04/19 15:34:35 neiluj
* préparration release (livraison) "Narmer" - v0.25
*
* Revision 1.29 2007/04/13 09:41:09 neiluj
* réparration cvs
*