Skip to content

Commit

Permalink
Dev: Remove unused function (CintLink)
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Aug 19, 2016
1 parent 67ae9c8 commit dfe7889
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions application/core/plugins/CintLink/CintLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -1229,27 +1229,6 @@ protected function checkPermission($surveyId = null, $orderUrl = null)
return $ownSurvey || $isSuperAdmin;
}

/**
* If any order is 'new' or 'live', survey must be active.
*
* @return void
*/
protected function showActivateMessage($surveyId) {
$survey = Survey::model()->findByPk($surveyId);
$orders = $this->getOrders(array(
'sid' => $surveyId,
'deleted' => 0
));

if ($survey->active != 'Y')
{
Yii::app()->user->setFlash(
'warning',
$this->gT('This survey is live or under review by Cint. Please activate the survey as soon as possible.')
);
}
}

/**
* As above, but checks so that *all* orders have
* *any* of the status in $statuses.
Expand Down

0 comments on commit dfe7889

Please sign in to comment.