Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lochmueller
Copy link
Contributor

No description provided.

@lochmueller
Copy link
Contributor Author

@sirdiego Do you need more information for this PR?

@sirdiego
Copy link
Owner

@lochmueller yeah see my review comment above

@lochmueller
Copy link
Contributor Author

Hmm... I saw no comment?!

}

$filename = GeneralUtility::getFileAbsFileName($this->filepath);
$filename = Environment::getPublicPath() . $this->filepath;
Copy link
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
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