-
Notifications
You must be signed in to change notification settings - Fork 0
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
Support reporting changes in root namespace. #25
Comments
In PageSaveEvent.php, this function:
doesn't handle the case where the page is in the root namespace. It returns the page name instead. I replaced it as follows:
Config.php then needs isValidNamespace() to be changed this way:
Now, I need to figure out how to create a fork of this repo, so as to submit a PR, since I have an existing fork of the discordnotifier plugin and git isn't allowing me to fork this. Grrr.... |
#26 is closed with no explanation? |
Currently the code works very well except when changes are made to pages in the root namespace. Say you have a page :test. The function isValidNamespace is receiving 'test' in the $namespace function argument, rather than ':' or an empty string.
isValidNamespace seems to be called from processEvent(PageSaveEvent $event) in action.php, so it looks like the namespace set in the $event argument is incorrect for pages in the root.
NOTE: I am not a PHP programmer, let alone knowledgeable in Dokuwiki coding. I'm just digging, trying to get this to do what I need it to do. I'll keep digging...
The text was updated successfully, but these errors were encountered: