User:DJ Jeri/extensions/LinkTag
(Redirected from User:DJ Jeri/LinkTag)
<?php
$wgExtensionFunctions[] = 'wfLinkTagSetup';
function wfLinkTagSetup() {
global $wgParser;
$wgParser->setHook( 'link', 'efLinkTagRender' );
}
function efLinkTagRender( $input, $argv, &$parser ) {
$parser->disableCache();
$output = "<link rel=\"{$argv['rel']}\" type=\"{$argv['type']}\" title=\"{$argv['title']}\" href=\"{$argv['href']}\" />";
echo $output;
return true;
}