Hello,
I'm trying to add a new javascript to the header block. I want to use the
function "addScript(...)" of the File "OutputPage.php" in an extension
which
uses the hook "ParserAfterStrip". All this is working fine: While debugging,
I can see the given text is stored in the member "$this->mScripts" and I can
read the given text by using "getScript()".
The function "getScript(...)" is only used one time in the function
"outPage()" of the file "SkinTemplate.php" in this way:
$tpl->set('headscripts', $out->getScript());
But here the script is seen for the last time! It is NOT added to the
output.
I have no idea how to handle this, since to use this function
"addScript(...)" seams to be the right way for an extension. Please help me
to find my problem.
Best regards,
Kai Huener