Skip to content
This repository has been archived by the owner on Aug 22, 2022. It is now read-only.

Fix doMakeSameDomainsLinksRelative causing TypeError #25

Closed
wants to merge 2 commits into from
Closed

Fix doMakeSameDomainsLinksRelative causing TypeError #25

wants to merge 2 commits into from

Conversation

S1SYPHOS
Copy link

doMakeSameDomainsLinksRelative only takes string and array values, but src/Template.php casts $status to being bool which in turn leads to the TypeError being described in #23 - the proposed code checks for these and applies doMakeSameDomainsLinksRelative if everything's okay.

Fixes #23

@S1SYPHOS
Copy link
Author

It's no beauty, but it does the job ..

This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Option doMakeSameDomainsLinksRelative requires array, not boolean
1 participant