Author: Bob-wikimedia
Description:
I was trying to write an extension that adds a function to the ParserAfterTidy hook. It appears that the $text argument to this hook contains only a single tiny line from the bottom of the page, rather than the entire text of the page as expected. I wrote a function like this:
function fnSectionIndenter(&$parser, &$text) {
var_dump($text); die();
}
and when I reloaded the page on my testing wiki, I got this output:
string(45) "
This page has been accessed 49 times.
"
What happened to the rest of the text of the page? Am I misunderstanding how this extension hook is intended to be used?
Version: 1.13.x
Severity: normal