Re: cvs: phpweb /include manual-lookup.inc

From: Date: Wed, 14 May 2003 18:54:09 +0000
Subject: Re: cvs: phpweb /include manual-lookup.inc
References: 1 2 3 4 5  Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-17655@lists.php.net to get a copy of this message
+ $langs = ($lang != 'en') ? + array(sqlite_escape_string($lang), 'en') : + array('en');
OK but why to have an array which will only have one element in any case???
It has two elements when your chosen language is not english; we iterate so that if the first lang is not found, we fall back on english. It's just a convenient way to avoid duplicating code.
Ah, ok, sorry for going into this without looking more closer. You are right. Goba

« previous php.mirrors (#17655) next »