diff options
author | David Aspinall <da@inf.ed.ac.uk> | 1999-12-01 18:41:41 +0000 |
---|---|---|
committer | David Aspinall <da@inf.ed.ac.uk> | 1999-12-01 18:41:41 +0000 |
commit | 83ef63bef9464bf85e3cc434b453a1d55b3a4fc6 (patch) | |
tree | aefa6941dfa2cf087b78f01eaa7a5a8a1ef0a506 /html/functions.php3 | |
parent | a9010faaf01642251c211c22f4efc06a3e6e4963 (diff) |
Fix HTML error with fileshow.
Diffstat (limited to 'html/functions.php3')
-rw-r--r-- | html/functions.php3 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/html/functions.php3 b/html/functions.php3 index 2e46c521..78cf32ca 100644 --- a/html/functions.php3 +++ b/html/functions.php3 @@ -161,8 +161,8 @@ function fileshow($filename,$text="",$title="") { if ( $text == "") { $text=$filename; }; $message=$title; if ( $message == "") { $message=$filename; }; - hlink("fileshow.phtml?file=" . urlencode($filename) - . "&title=" . urlencode($title), + $titlecode = ($title == "" ? "" : "&title=" . urlencode($title)); + hlink("fileshow.phtml?file=" . urlencode($filename) . $titlecode, $text, $message); } |