Skip to content

Commit

Permalink
Dev Minor fix in import
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Apr 1, 2013
1 parent 070a1a0 commit cce7461
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions application/controllers/admin/surveyadmin.php
Expand Up @@ -866,6 +866,16 @@ public function copy()
// Start the HTML
if ($action == 'importsurvey')
{
$aPathInfo = pathinfo($_FILES['the_file']['name']);
if (isset($aPathInfo['extension']))
{
$sExtension = $aPathInfo['extension'];
}
else
{
$sExtension = "";
}

$aData['sHeader'] = $clang->gT("Import survey data");
$aData['sSummaryHeader'] = $clang->gT("Survey structure import summary");
$importingfrom = "http";
Expand All @@ -877,16 +887,7 @@ public function copy()
}
// Start traitment and messagebox
$aData['bFailed'] = false; // Put a var for continue

$aPathInfo = pathinfo($_FILES['the_file']['name']);
if (isset($aPathInfo['extension']))
{
$sExtension = $aPathInfo['extension'];
}
else
{
$sExtension = "";
}


if ($action == 'importsurvey')
{
Expand Down

0 comments on commit cce7461

Please sign in to comment.