Hey, I have written a hook but the only time it is getting called is if I do a purge. Any ideas?
file: extensions/myext.php <?php function testing() { printf("TESTING 1 2 3\n"); }
$wgExtensionFunctions[] = "wfMyExtension"; function wfMyExtension() { global $wgParser; $wgParser->setHook( "myextension", "testing" ); }
?>
Added to the end of LocalSettins.php
require("extensions/myext.php");
Its like the tag is ignored unless an action=purge is specified. Thanks.
MedaiWiki 1.6.8 php 5.1.4
wikitech-l@lists.wikimedia.org