Skip to content

Commit

Permalink
Fix for strange error?
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/stable_plus@3484 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c-schmitz committed Oct 27, 2007
1 parent 5f030f6 commit e3312d5
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions common.php
Expand Up @@ -2020,17 +2020,19 @@ function templatereplace($line)
}
if (strpos($line, "{CLOSEWINDOW}") !== false) $line=str_replace("{CLOSEWINDOW}", "<a href='javascript:%20self.close()'>".$clang->gT("Close this Window")."</a>", $line);

$savereturn = "<a href='index.php?sid=$surveyid";
if (returnglobal('token'))
{
$savereturn.= "&amp;token=".returnglobal('token');
}

$savereturn .= "'>".$clang->gT("Return To Survey")."</a>";
if (strpos($line, "{SAVEERROR}") !== false) $line=str_replace("{SAVEERROR}", $errormsg, $line);
if (strpos($line, "{SAVEHEADING}") !== false) $line=str_replace("{SAVEHEADING}", $clang->gT("Save Your Unfinished Survey"), $line);
if (strpos($line, "{SAVEMESSAGE}") !== false) $line=str_replace("{SAVEMESSAGE}", $clang->gT("Enter a name and password for this survey and click save below.")."<br />\n".$clang->gT("Your survey will be saved using that name and password, and can be completed later by logging in with the same name and password.")."<br /><br />\n".$clang->gT("If you give an email address, an email containing the details will be sent to you."), $line);
if (strpos($line, "{RETURNTOSURVEY}") !== false) $line=str_replace("{RETURNTOSURVEY}", $savereturn, $line);
if (strpos($line, "{RETURNTOSURVEY}") !== false)
{
$savereturn = "<a href='index.php?sid=$surveyid";
if (returnglobal('token'))
{
$savereturn.= "&amp;token=".returnglobal('token');
}
$savereturn .= "'>".$clang->gT("Return To Survey")."</a>";
$line=str_replace("{RETURNTOSURVEY}", $savereturn, $line);
}
if (strpos($line, "{SAVEFORM}") !== false) {
//SAVE SURVEY DETAILS
$saveform = "<table><tr><td align='right'>".$clang->gT("Name").":</td><td><input type='text' name='savename' value='";
Expand Down

0 comments on commit e3312d5

Please sign in to comment.