I'm a teacher and encourage my students to add and edit content in my wiki. Now I'd like to add a template to every page which shows whether the last edit was performed by a teacher or a student. The template contains a box at the bottom of the page and an <indicator>
, both of which should appear on every page. The box is visible, the <indicator>
is not. What am I doing wrong?
Topic on Extension talk:PageNotice
I found a solution: replacing
$out->addHTML( '<div id="bottom-notice-ns">' . $nsfooter->parse() . '</div>' );
and similar occurrences in /includes/Hooks.php
with
$out->addWikiTextAsContent( '<div id="bottom-notice-ns">' . $nsfooter->plain() . '</div>' );
worked for me. I'm going to test this thoroughly and eventually commit it in gerrit, if it doesn't break anything.