Subversion Repositories eFlore/Applications.cel

Rev

Rev 1687 | Rev 1694 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1687 Rev 1689
Line 347... Line 347...
347
		self::$cache['getNomCommun'][$cache_id] = $nom;
347
		self::$cache['getNomCommun'][$cache_id] = $nom;
348
		return $nom;
348
		return $nom;
349
	}
349
	}
Line 350... Line 350...
350
 
350
 
-
 
351
	static function getNomCommun_v4($obs, $cel) {
351
	static function getNomCommun_v4($obs, $cel) {
352
		static $is_table = false;
-
 
353
		if(! $obs['nt']) return NULL;
-
 
354
 
-
 
355
		if(!$is_table) {
352
		if(! $obs['nt']) return NULL;
356
			// une seule fois
-
 
357
			if(! $cel->executerRequete("SHOW TABLES LIKE 'cel_references'", Cel::SQL_RETOUR_LIGNE)) return NULL;
353
		if(! $cel->executerRequete("SHOW TABLES LIKE 'cel_references'", Cel::SQL_RETOUR_LIGNE)) return NULL;
358
			$is_table = true;
354
		
359
		}
355
		$langue = 'fra';
360
		$langue = 'fra';
356
		list($referentiel) = explode(':', strtolower($obs['nom_referentiel']));
361
		list($referentiel) = explode(':', strtolower($obs['nom_referentiel']));
Line 357... Line 362...
357
		$cache_id = $referentiel . '-' . $obs['nt'] . '-' . $langue;
362
		$cache_id = $referentiel . '-' . $obs['nt'] . '-' . $langue;