-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
<?php
$wgExtensionFunctions[] = "wfTest";
function wfTest() {
global $wgParser;
$wgParser->setHook( "Test", "renderTest" );
}
function renderTest( $input ) {
[...]
[preparing $opts]
[...]
$output .= new phpMyEdit($opts); //weird...
return $output;
}
?>
Why are you concatenating an object to what should be a string?
Furthermore, you're currently working on a parser hook, which usually
shouldn't need database information.
- --
Edward Z. Yang Personal: edwardzyang(a)thewritingpot.com
SN:Ambush Commander Website:
http://www.thewritingpot.com/
GPGKey:0x869C48DA
http://www.thewritingpot.com/gpgpubkey.asc
3FA8 E9A9 7385 B691 A6FC B3CB A933 BE7D 869C 48DA
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
iD8DBQFDqyVgqTO+fYacSNoRAqMHAJ0TkvrIjKvCnkcIqnVHrYAz4bRyDwCeNl0V
6SA1x9YvnZSABfLewxH94X4=
=6+J8
-----END PGP SIGNATURE-----