1

Closed

Fix for Template.php: load template error

description

Found an error @Template.php. Missing directory separator @ contruct:
/**
 * Create a new Template Object
 * 
 * @param string $strFilename
 */
public function __construct($strFilename) {
    $path = dirname($strFilename);
    /**
    * Add Directory Separator Here
    * $this->_tempFileName = $path.time().'.docx';
    */
    $this->_tempFileName = $path.DIRECTORY_SEPARATOR.time().'.docx';

    copy($strFilename, $this->_tempFileName); // Copy the source File to the temp File

    $this->_objZip = new ZipArchive();
    $this->_objZip->open($this->_tempFileName);

    $this->_documentXML = $this->_objZip->getFromName('word/document.xml');
}

file attachments

Closed Jul 8, 2011 at 10:56 AM by raw_venture_ad

comments

raw_venture_ad wrote Jul 8, 2011 at 10:56 AM

Thanks for posting this. Will be included in next bug fix release.