In my skin a certain component should only be rendered if people view the page. It should not be shown if people edit the page.
In MW 1.37 the following PHP code worked fine, but since 1.39 it no longer works.
Can someone point me in the right direction please?
global $mediaWiki; ( isset($mediaWiki) ) { if ( $mediaWiki->getAction() == "view" ) { ShowStuff(); } }