Skip to content

Commit

Permalink
Fixed issue #17376: Remove duplicate of pclzip
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Jun 21, 2021
1 parent 5e9f7a4 commit d501a6e
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 5,726 deletions.
4 changes: 2 additions & 2 deletions application/controllers/admin/export.php
Expand Up @@ -901,7 +901,7 @@ public function exportMultipleSurveys($sSurveys, $sExportType)
{
$aSurveys = json_decode($sSurveys);
$aResults = array();
Yii::import('application.libraries.admin.pclzip', true);
Yii::app()->loadLibrary('admin.pclzip');
$bArchiveIsEmpty = true;
$sTempDir = Yii::app()->getConfig("tempdir");
$sZip = randomChars(30);
Expand Down Expand Up @@ -1019,7 +1019,7 @@ private function _exportarchive($iSurveyID, $bSendToBrowser = true)
$sLSTFileName = $sTempDir . DIRECTORY_SEPARATOR . randomChars(30);
$sLSIFileName = $sTempDir . DIRECTORY_SEPARATOR . randomChars(30);

Yii::import('application.libraries.admin.pclzip', true);
Yii::app()->loadLibrary('admin.pclzip');
$zip = new PclZip($aZIPFileName);

file_put_contents($sLSSFileName, surveyGetXMLData($iSurveyID));
Expand Down
2 changes: 1 addition & 1 deletion application/helpers/admin/import_helper.php
Expand Up @@ -1248,7 +1248,7 @@ function importSurveyFile($sFullFilePath, $bTranslateLinksFields, $sNewSurveyNam
return $aImportResults;
case 'lsa':
// Import a survey archive
Yii::import("application.libraries.admin.pclzip.pclzip", true);
Yii::app()->loadLibrary('admin.pclzip');
$pclzip = new PclZip(array('p_zipname' => $sFullFilePath));
$aFiles = $pclzip->listContent();

Expand Down

0 comments on commit d501a6e

Please sign in to comment.