Skip to content

Conversation

Chris--S
Copy link
Collaborator

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.

@Chris--S
Copy link
Collaborator Author

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";
Copy link
Collaborator

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?

Copy link
Collaborator Author

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.

@splitbrain
Copy link
Collaborator

👍

Chris--S added a commit that referenced this pull request Mar 2, 2014
@Chris--S Chris--S merged commit ff388af into master Mar 2, 2014
@Chris--S Chris--S deleted the renderer_graceful_fallback branch March 2, 2014 19:10
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.

3 participants