We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
$block->toHtml()
This is the code in the html() method that causes this behavior.
html()
try { return (string)snippet('blocks/' . $this->type(), $this->controller(), true); } catch (Throwable $e) { return '<p>Block error: "' . $e->getMessage() . '" in block type: "' . $this->type() . '"</p>'; }
Expected behavior There should be a check if debug is on or off and only show the message in debug mode, otherwise an empty string.
Screenshots
Kirby Version Tested with 3.7.0.1
The text was updated successfully, but these errors were encountered:
We should probably also double-check if there are other places where the frontend might give information away in non-debug mode.
Sorry, something went wrong.
✅
texnixe
Successfully merging a pull request may close this issue.
Description
This is the code in the
html()
method that causes this behavior.Expected behavior
There should be a check if debug is on or off and only show the message in debug mode, otherwise an empty string.
Screenshots
To reproduce
Your setup
Kirby Version
Tested with 3.7.0.1
The text was updated successfully, but these errors were encountered: