Re: cvs: phpweb /include manual-lookup.inc
| From: | Wez Furlong | Date: | Wed, 14 May 2003 18:02:51 +0000 |
| Subject: | Re: cvs: phpweb /include manual-lookup.inc | ||
| References: | 1 2 3 4 | Groups: | php.mirrors |
| Request: | Send a blank email to php-mirrors+get-17653@lists.php.net to get a copy of this message | ||
On Wed, 14 May 2003, Gabor Hojtsy wrote:
> >>>+ $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.
--Wez.