aboutsummaryrefslogtreecommitdiffhomepage
path: root/html/functions.php3
diff options
context:
space:
mode:
authorGravatar David Aspinall <da@inf.ed.ac.uk>1999-12-01 18:41:41 +0000
committerGravatar David Aspinall <da@inf.ed.ac.uk>1999-12-01 18:41:41 +0000
commit83ef63bef9464bf85e3cc434b453a1d55b3a4fc6 (patch)
treeaefa6941dfa2cf087b78f01eaa7a5a8a1ef0a506 /html/functions.php3
parenta9010faaf01642251c211c22f4efc06a3e6e4963 (diff)
Fix HTML error with fileshow.
Diffstat (limited to 'html/functions.php3')
-rw-r--r--html/functions.php34
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);
}