Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Jul 29, 2022
2 parents ecda93e + 3682d8c commit 15f85ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions application/controllers/SurveyAdministrationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ public function actionImportsurveyresources()
if (!empty($iSurveyID)) {
if (Yii::app()->getConfig('demoMode')) {
Yii::app()->user->setFlash('error', gT("Demo mode only: Uploading files is disabled in this system."));
$this->redirect(array('surveyAdministration/editlocalsettings/surveyid/' . $iSurveyID));
$this->redirect(array('surveyAdministration/rendersidemenulink/', 'surveyid' => $iSurveyID, 'subaction' => 'generalsettings'));
}

// Create temporary directory
Expand All @@ -595,7 +595,7 @@ public function actionImportsurveyresources()
gT("Incorrect permissions in your %s folder."),
$basedestdir
));
$this->redirect(array('surveyAdministration/editlocalsettings/surveyid/' . $iSurveyID));
$this->redirect(array('surveyAdministration/rendersidemenulink/', 'surveyid' => $iSurveyID, 'subaction' => 'generalsettings'));
}


Expand All @@ -612,7 +612,7 @@ public function actionImportsurveyresources()
'error',
gT("This file is not a valid ZIP file archive. Import failed. ") . $zip->errorInfo(true)
);
$this->redirect(array('surveyAdministration/editlocalsettings/surveyid/' . $iSurveyID));
$this->redirect(array('surveyAdministration/rendersidemenulink/', 'surveyid' => $iSurveyID, 'subaction' => 'generalsettings'));
}
// now read tempdir and copy authorized files only
$folders = array('flash', 'files', 'images');
Expand Down

0 comments on commit 15f85ab

Please sign in to comment.