12 public function tidy( $text ) {
17 $correctedtext = $this->
cleanWrapped( $wrappedtext,
false, $retVal );
20 wfDebug(
"Possible tidy configuration error!\n" );
21 return $text .
"\n<!-- Tidy was unable to run -->\n";
22 } elseif ( is_null( $correctedtext ) ) {
23 wfDebug(
"Tidy error detected!\n" );
24 return $text .
"\n<!-- Tidy found serious XHTML errors -->\n";
27 $correctedtext = $wrapper->postprocess( $correctedtext );
29 return $correctedtext;
32 public function validate( $text, &$errorStr ) {
wfDebug( $text, $dest='all', array $context=[])
Sends a line to the debug log if enabled or, optionally, to a comment in output.
please add to it if you re going to add events to the MediaWiki code where normally authentication against an external auth plugin would be creating a local account incomplete not yet checked for validity & $retval