private function errorToHtml(ProcessingError $error) { return '<span class="errorbox">' . htmlspecialchars(wfMessage('validator-fatal-error', $error->getMessage())->text()) . '</span>'; }
/** * Creates and returns the output when a fatal error prevent regular rendering. * * @since 0.4 * * @param ProcessingError $error * * @return string */ protected function renderFatalError(ProcessingError $error) { return '<div><span class="errorbox">' . wfMessage('validator-fatal-error', $error->getMessage())->parse() . '</span></div><br /><br />'; }