ProtectedContactPage/includes/ContactPageHooks.php

11 lines
282 B
PHP

<?php
class ContactPageHooks
{
public static function onBeforePageDisplay(OutputPage $out, Skin $skin)
{
// TO DO: only inject this on Special:Contact. right now its on the entire site
$out->addScriptFile('https://www.google.com/recaptcha/api.js');
}
}