Skip to content

Commit

Permalink
Modified url replace so if there is no urldescrip, it uses the url as…
Browse files Browse the repository at this point in the history
… the text.

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@340 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Jun 6, 2003
1 parent 7635cee commit 27d3c04
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.php
Expand Up @@ -190,7 +190,9 @@ function templatereplace($line)
$submitbutton="<input class='submit' type='submit' value=' submit ' name='move'>";
$line=str_replace("{SUBMITBUTTON}", $submitbutton, $line);
$line=str_replace("{COMPLETED}", $completed, $line);
$line=str_replace("{URL}", "<a href='$surveyurl'>$surveyurldescrip</a>", $line);
if (!$surveyurldescrip) {$linkreplace="<a href='$surveyurl'>$surveyurl</a>";}
else {$linkreplace="<a href='$surveyurl'>$surveyurldescrip</a>";}
$line=str_replace("{URL}", $linkreplace, $line);
$line=str_replace("{PRIVACY}", $privacy, $line);
$line=str_replace("{CLEARALL}", $clearall, $line);
$line=str_replace("{TEMPLATEURL}", $templateurl, $line);
Expand Down

0 comments on commit 27d3c04

Please sign in to comment.