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

Upgrade library simple_html_dom to 1.8.1 #410

Merged
merged 2 commits into from
Mar 8, 2019

Conversation

GergoLadi
Copy link
Contributor

This PR upgrades the library simple_html_dom to version 1.8.1 from 1.5, making the theme compatible with PHP 7.3. tpl_functions.php is also updated to work with the new version of the library.

Replaced all calls to str_get_html() with simple_html_dom->load() as str_get_html() is marked as deprecated since 1.7.
Explicitly specified and set $stripRN to 'false' in each call to preserve line breaks (thus get the same behaviour we had with 1.5 - the default value in 1.8.1 is now 'true').
@giterlizzi giterlizzi changed the base branch from master to develop March 8, 2019 21:18
@giterlizzi giterlizzi merged commit 01ddd5b into giterlizzi:develop Mar 8, 2019
@giterlizzi
Copy link
Owner

Merged. Thanks!!! ;)

@AmritasyaPutra
Copy link
Contributor

Should I use the develop branch to obtain this fix or a roll out in the master branch is due anytime near?

@AmritasyaPutra
Copy link
Contributor

I was checking commits, is Bootstrap 4 also in the plans for next release?

@giterlizzi
Copy link
Owner

@AmritasyaPutra The v2019-05-22 release (issued few days ago) have the new version of Simple HTML DOM with Bootstrap v3 version.

The Bootstrap v4 porting will be published in Q3 / Q4 in a separated testing/preview branch.

Thanks!
Joseph

@AmritasyaPutra
Copy link
Contributor

Thank you. I upgraded yesterday. The upgrade went smooth, except for the following:

PHP Warning: Invalid argument supplied for foreach() in /home/ekvastra/wiki.ekvastra.in/lib/tpl/bootstrap3/tpl/page-tools.php on line 26.

Due to this edit button has gone.

I am not so great at PHP but let me dig further. If you have a quick advise let me know.

@AmritasyaPutra
Copy link
Contributor

In the course I found two bugs. For one I have opened a bug report, during rewrite showIndividualTool has been lost, this setting is not used. There is some mistake in page-tools.php but I can't express it clearly. All I can say is that if I set DokuWiki-style Page Tools then there is a problem in page-tools.php. Would you like to check this further?

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.

None yet

3 participants