cvs: phpweb / manual-lookup.php
| From: | Hojtsy Gabor | Date: | Thu, 23 Nov 2000 08:41:45 +0000 |
| Subject: | cvs: phpweb / manual-lookup.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-2928@lists.php.net to get a copy of this message | ||
goba Thu Nov 23 00:41:45 2000 EDT
Modified files:
/phpweb manual-lookup.php
Log:
Largely prefer international manuals, and cleaning up a bit...
Index: phpweb/manual-lookup.php
diff -u phpweb/manual-lookup.php:1.4 phpweb/manual-lookup.php:1.5
--- phpweb/manual-lookup.php:1.4 Thu Nov 23 00:30:03 2000
+++ phpweb/manual-lookup.php Thu Nov 23 00:41:45 2000
@@ -12,26 +12,31 @@
// Get the country code, to find native
// language manual entries first
$cc = $MIRRORS[$MYSITE][2];
+ $int_manual_try = array();
+ $en_manual_try = array();
$func = ereg_replace("_","-",$func);
$func = ereg_replace('\(.*\)',"-",$func);
- $try_files[] = "/manual/${cc}/${prefix}${func}.php";
- $try_files[] = "/manual/${prefix}${func}.php";
+
+ $int_manual_try[] = "/manual/${cc}/${prefix}${func}.php";
+ $en_manual_try[] = "/manual/${prefix}${func}.php";
+
$nosp = ereg_replace(" ", "", $func);
if ($nosp != $func) {
- $try_files[] = "/manual/${cc}/${prefix}${nosp}.php";
- $try_files[] = "/manual/${prefix}${nosp}.php";
+ $int_manual_try[] = "/manual/${cc}/${prefix}${nosp}.php";
+ $en_manual_try[] = "/manual/${prefix}${nosp}.php";
}
$dasp = ereg_replace(" ", "-", $func);
if ($dasp != $func) {
- $try_files[] = "/manual/${cc}/${prefix}${dasp}.php";
- $try_files[] = "/manual/${prefix}${dasp}.php";
+ $int_manual_try[] = "/manual/${cc}/${prefix}${dasp}.php";
+ $en_manual_try[] = "/manual/${prefix}${dasp}.php";
}
$noul = ereg_replace("-", "", $func);
if ($noul != $func) {
- $try_files[] = "/manual/${cc}/${prefix}${noul}.php";
- $try_files[] = "/manual/${prefix}${noul}.php";
+ $int_manual_try[] = "/manual/${cc}/${prefix}${noul}.php";
+ $en_manual_try[] = "/manual/${prefix}${noul}.php";
}
+ $try_files = array_merge($try_files, $int_manual_try, $en_manual_try);
}
tryprefix($function, "function.");