Log if the page exists in the SkinAfterContent hook
[T119942Repr.git] / T119942Repr.hooks.php
blobacdcd68980074e4fe475df2f148cad5e2359f372
1 <?php
2 /**
3 * Hooks for T119942Repr extension
5 * @file
6 * @ingroup Extensions
7 */
9 class T119942ReprHooks {
11 public static function onSkinAfterContent( &$data, Skin $skin ) {
12 wfDebugLog( __METHOD__, "SkinAfter hook called" );
13 if ( $skin->canUseWikiPage() ) {
14 $wikiPage = $skin->getWikiPage();
15 wfDebugLog( __METHOD__, "Exists? " . $wikiPage->exists() );