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

Attempts to restore Hogfather compatibility #294

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

Conversation

eduardomozart
Copy link
Contributor

The class PageResolver doesn't exists on DokuWiki Hogfather and older releases, so this PR attempts to fix #291 by falling back to the old function "resolve_id" to parse NS if the class PageResolver isn't available.

The class PageResolver doesn't exists on DokuWiki Hogfather and older releases, so this PR attempts to fix samuelet#291 by falling back to the old function "resolve_id" to parse NS if the class PageResolver isn't available.
@Klap-in
Copy link
Collaborator

Klap-in commented Feb 1, 2024

There are also a lot of changes, e.g. by using php7.4 functionalities, that break compatibility with old DokuWiki releases. Is it worth to add these kind of things back? Better people update there DokuWiki in time, such that the updates remain relatively smaller… and hopefully easier.

$ns = getNs($resolver->resolveId($ns));
return $ns === false ? '' : $ns;
} else {
return resolve_id(getNS($id), $ns);
Copy link
Collaborator

Choose a reason for hiding this comment

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

In general resolve_id() should not be used. But I guess the old code did this already…

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, the old code already uses this function. I noticed that there's a lot of depreciation errors about IndexMenu plug-in, as it still references "resolve_id" and "resolve_pageid" functions that wasn't migrated to PageResolver yet, so I believe that we migrate all those functions or keep it until we migrate them all.

@eduardomozart
Copy link
Contributor Author

There are also a lot of changes, e.g. by using php7.4 functionalities, that break compatibility with old DokuWiki releases. Is it worth to add these kind of things back? Better people update there DokuWiki in time, such that the updates remain relatively smaller… and hopefully easier.

I agree. I didn't want to support those legacy DokuWiki versions neither, but I believe this is the only func that breaks compatibility with older DokuWiki releases, so users that doesn't have DokuWiki control can still keep IndexMenu updated.

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.

Current version incompatible with hogfather
2 participants