cvs: phpweb /include layout.inc
| From: | Gabor Hojtsy | Date: | Mon, 22 Jul 2002 19:29:38 +0000 |
| Subject: | cvs: phpweb /include layout.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-11449@lists.php.net to get a copy of this message | ||
goba Mon Jul 22 15:29:38 2002 EDT
Modified files:
/phpweb/include layout.inc
Log:
The mirror will include http:// and a / at the end
Index: phpweb/include/layout.inc
diff -u phpweb/include/layout.inc:1.92 phpweb/include/layout.inc:1.93
--- phpweb/include/layout.inc:1.92 Mon Jul 22 15:27:46 2002
+++ phpweb/include/layout.inc Mon Jul 22 15:29:38 2002
@@ -1,5 +1,5 @@
<?php
-/* $Id: layout.inc,v 1.92 2002/07/22 19:27:46 goba Exp $ */
+/* $Id: layout.inc,v 1.93 2002/07/22 19:29:38 goba Exp $ */
# spacer()
# print a IMG tag for a sized spacer GIF
@@ -163,9 +163,11 @@
$size = @filesize($local_file);
//echo("<!-- file=$file localfile=$local_file size-$size -->\n");
- $download_link = "/do_download.php?download_file=$file";
+ $download_link = "do_download.php?download_file=$file";
if ($mirror != '') {
- $download_link = "http://$mirror" .
$download_link;
+ $download_link = $mirror . $download_link;
+ } else {
+ $download_link = "/" . $download_link;
}
print_link($download_link, $title);