Commit: 989246fb3b836e1695d3d869bac4ad11756bd774 Author: Stanislav Malyshev <[email protected]> Sun, 17 Nov 2013 15:52:01 -0800 Parents: 17380e9c9de75d0b6037b8d3dbab6b347baadef1 Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=989246fb3b836e1695d3d869bac4ad11756bd774 Log: fix signature link Changed paths: M include/layout.inc Diff: diff --git a/include/layout.inc b/include/layout.inc index 38a2ca4..f86109d 100644 --- a/include/layout.inc +++ b/include/layout.inc @@ -561,7 +561,13 @@ function download_link($file, $title, $showsize = TRUE, $mirror = '') if(@file_exists($local_file.".asc")) { echo " "; - print_link($download_link.".asc", "(sig)"); + $sig_link = "get/$file.asc/from/a/mirror"; + if ($mirror != '') { + $sig_link = $mirror . $sig_link; + } else { + $sig_link = "/" . $sig_link; + } + print_link($sig_link, "(sig)"); } // Try to get the size of the file -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
