Skip to content

Commit

Permalink
Dev Coding guidelines
Browse files Browse the repository at this point in the history
  • Loading branch information
GautamGupta committed Sep 29, 2012
1 parent 09b416b commit 70f8ffa
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions application/libraries/Save.php
Expand Up @@ -147,11 +147,11 @@ function savedcontrol()
{
$today = dateShift(date("Y-m-d H:i:s"), "Y-m-d H:i:s", $timeadjust);
$sdata = array(
"datestamp" => $today,
"ipaddr" => getIPAddress(),
"startlanguage" => $_SESSION['survey_'.$surveyid]['s_lang'],
"refurl" => getenv("HTTP_REFERER")
);
"datestamp" => $today,
"ipaddr" => getIPAddress(),
"startlanguage" => $_SESSION['survey_'.$surveyid]['s_lang'],
"refurl" => getenv("HTTP_REFERER")
);
if (Survey_dynamic::model($thissurvey['sid'])->insert($sdata)) // Checked
{
$srid = Yii::app()->db->getLastInsertID();
Expand Down Expand Up @@ -239,7 +239,7 @@ function savedsilent()
$language = $tokenentryarray['language'];

//$message .= "\n\n$publicurl/$surveyid/lang-$language/tk-$clienttoken";
$message .= "\n\n" . Yii::app()->getController()->createAbsoluteUrl("/survey/index/sid/{$surveyid}/lang/{$language}/token/{$clienttoken}");
$message .= "\n\n" . Yii::app()->getController()->createAbsoluteUrl("/survey/index/sid/{$surveyid}/lang/{$language}/token/{$clienttoken}");

if (SendEmailMessage($message, $subject, $to, $from, $sitename, false, getBounceEmail($surveyid)))
{
Expand Down

0 comments on commit 70f8ffa

Please sign in to comment.