-
-
Notifications
You must be signed in to change notification settings - Fork 895
Renderer graceful fallback #571
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
Conversation
Now makes use of autoloader and can be claimed to resolve FS#2272 |
$rclass = "Doku_Renderer_$mode"; | ||
if ( class_exists($rclass) ) { | ||
// viewers should see renderered output, so restrict the warning to admins only | ||
$msg = "No renderer '$rname' found for mode '$mode', check your plugins"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doesn't this duplicate the message in line 646?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, no, its the line 646 message that is redundant. 654 and 669 messages can both be output individually, but 646 will always be followed by one or other. I'll remove it.
👍 |
Resolves FS#1767
After implementing this, I wonder if fallback should only be applied when $mode == 'xhtml'. The problem it solves is a replacement renderer plugin being disabled/uninstalled when it is the configured xhtml renderer and effectively all but disabling the wiki.