Permalink
Browse files

Fixed issue #7695: Error importing a label set

  • Loading branch information...
c-schmitz committed Mar 21, 2013
1 parent 9a481b4 commit 6d14f9bf385b1dc2e2ef4d76cd7d8167febb00a9
Showing with 1 addition and 1 deletion.
  1. +1 −1 application/controllers/admin/labels.php
@@ -126,7 +126,7 @@ public function import()
Yii::app()->loadHelper('admin/import');
$sFullFilepath = Yii::app()->getConfig('tempdir') . DIRECTORY_SEPARATOR . randomChars(20);
- $aPathInfo = pathinfo($sFullFilepath);
+ $aPathInfo = pathinfo($_FILES['the_file']['name']);
$sExtension = !empty($aPathInfo['extension']) ? $aPathInfo['extension'] : '';
if (!@move_uploaded_file($_FILES['the_file']['tmp_name'], $sFullFilepath))

0 comments on commit 6d14f9b

Please sign in to comment.