From: <var...@us...> - 2021-01-03 15:23:43
|
Revision: 10221 http://sourceforge.net/p/phpwiki/code/10221 Author: vargenau Date: 2021-01-03 15:23:36 +0000 (Sun, 03 Jan 2021) Log Message: ----------- function guessing_lang needs no parameter Modified Paths: -------------- trunk/lib/config.php Modified: trunk/lib/config.php =================================================================== --- trunk/lib/config.php 2021-01-03 09:46:24 UTC (rev 10220) +++ trunk/lib/config.php 2021-01-03 15:23:36 UTC (rev 10221) @@ -65,15 +65,11 @@ * We should really check additionally if the i18n HomePage version is defined. * So must defer this to the request loop. * - * @param array $languages * @return string */ -function guessing_lang($languages = array()) +function guessing_lang() { - if (!$languages) { - // make this faster - $languages = array("en", "de", "es", "fr", "it", "ja", "zh", "nl", "sv"); - } + $languages = array("en", "de", "es", "fr", "it", "ja", "zh", "nl", "sv"); $accept = false; if (isset($GLOBALS['request'])) // in fixup-dynamic-config there's no request yet This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |