Skip to content

Commit

Permalink
Bugfix: when passing a full path, the parent directory got duplicated…
Browse files Browse the repository at this point in the history
…, so no file was generated.
  • Loading branch information
alexxed committed Jan 15, 2012
1 parent 63a45fd commit 08e8e4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenDocument_Spreadsheet_Writer.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class OpenDocument_Spreadsheet_Writer {

public function __construct($strFile) {
$this->strFile = $strFile;
$this->strTmpDir = uniqid(dirname($this->strFile) . '/' . $this->strFile . '_');
$this->strTmpDir = uniqid(dirname($this->strFile) . '/' . basename($this->strFile) . '_');
mkdir($this->strTmpDir);
}

Expand Down

0 comments on commit 08e8e4e

Please sign in to comment.