Skip to content

[BUGFIX] switch to excel package: phpoffice/phpspreadsheet#37

Open
lochmueller wants to merge 1 commit into
sirdiego:masterfrom
lochmueller:modern-phpoffice
Open

[BUGFIX] switch to excel package: phpoffice/phpspreadsheet#37
lochmueller wants to merge 1 commit into
sirdiego:masterfrom
lochmueller:modern-phpoffice

Conversation

@lochmueller
Copy link
Copy Markdown
Contributor

No description provided.

@lochmueller
Copy link
Copy Markdown
Contributor Author

@sirdiego Do you need more information for this PR?

@sirdiego
Copy link
Copy Markdown
Owner

@lochmueller yeah see my review comment above

@lochmueller
Copy link
Copy Markdown
Contributor Author

Hmm... I saw no comment?!

}

$filename = GeneralUtility::getFileAbsFileName($this->filepath);
$filename = Environment::getPublicPath() . $this->filepath;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @lochmueller,
why did you change this line? This would NOT have the same effect. I think we originally used this call to e.g. resolve "EXT:" prefixes, when we now just concatenate this with the filepath that would be something completely different. getFileAbsFileName is also not deprecated 🤔
I'd like to have a little more input on this, thanks!

@lochmueller
Copy link
Copy Markdown
Contributor Author

Hey @sirdiego the problem in my case was, that "$this->filepath" starts with a "/" but was relative to the docroot. As result the GeneralUtility::getFileAbsFileName() remove the path, because it is no "real" absolute path. I think there are changes in the path handling between the versions. Environment::getPublicPath() looks ok for me, because it exists since v10.
Regards, Tim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants