Skip to content

Commit

Permalink
Fixed url for View Statistics
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_yii@11785 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
Gaurav Narula committed Dec 27, 2011
1 parent c3c6704 commit 4a97595
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/controllers/surveyaction.php
Expand Up @@ -236,7 +236,7 @@ function action()
$link .= "/lang-".sanitize_languagecode($param['lang']);
}
$link .= "' class='surveytitle'>".$rows['surveyls_title']."</a>\n";
if ($rows['publicstatistics'] == 'Y') $link .= "<a href='".$this->getController()->createUrl("statistics_user/".$rows['sid'])."'>(".$clang->gT('View statistics').")</a>";
if ($rows['publicstatistics'] == 'Y') $link .= "<a href='".$this->getController()->createUrl("statistics_user/action/surveyid/".$rows['sid'])."'>(".$clang->gT('View statistics').")</a>";
$link .= "</li>\n";
$list[]=$link;
}
Expand Down Expand Up @@ -267,7 +267,7 @@ function action()
$link = "<li><a href=\"#\" id='inactivesurvey' onclick = 'sendreq(".$rows['sid'].");' ";
//$link = "<li><a href=\"#\" id='inactivesurvey' onclick = 'get2post(".$this->getController()->createUrl('survey/send/')."?sid={$rows['sid']}&amp;)sendreq(".$rows['sid'].",".$rows['startdate'].",".$rows['expires'].");' ";
$link .= " class='surveytitle'>".$rows['surveyls_title']."</a>\n";
if ($rows['publicstatistics'] == 'Y') $link .= "<a href='".$this->getController()->createUrl("statistics_user/".$rows['sid'])."'>(".$clang->gT('View statistics').")</a>";
if ($rows['publicstatistics'] == 'Y') $link .= "<a href='".$this->getController()->createUrl("statistics_user/action/surveyid/".$rows['sid'])."'>(".$clang->gT('View statistics').")</a>";
$link .= "</li><div id='regform'></div>\n";
$list[]=$link;
}
Expand Down

0 comments on commit 4a97595

Please sign in to comment.