cvs: phpweb /include manual-lookup.inc
| From: | Jim Winstead | Date: | Fri, 12 Jan 2001 21:07:18 +0000 |
| Subject: | cvs: phpweb /include manual-lookup.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-3375@lists.php.net to get a copy of this message | ||
jimw Fri Jan 12 13:07:18 2001 EDT
Modified files:
/phpweb/include manual-lookup.inc
Log:
always try english, too
Index: phpweb/include/manual-lookup.inc
diff -u phpweb/include/manual-lookup.inc:1.2 phpweb/include/manual-lookup.inc:1.3
--- phpweb/include/manual-lookup.inc:1.2 Fri Jan 12 12:57:06 2001
+++ phpweb/include/manual-lookup.inc Fri Jan 12 13:07:18 2001
@@ -37,5 +37,11 @@
$try = tryprefix($lang, $function, $section);
if ($try) return $try;
}
+ if ($lang != "en") {
+ while (list($t,$section) = each($sections)) {
+ $try = tryprefix($lang, $function, $section);
+ if ($try) return $try;
+ }
+ }
return "";
}