FYI the ampersand makes it so the parser object is passed by reference instead of being copied, so that is a part of PHP and not a typo: http://us3.php.net/references.pass
That should definitly work and it is what is specified in the MediaWiki docs. I don't now what difference putting tics around the arg values make (what kind of tics?), but I'll look in to it. /Micke On 7 Okt, 19:29, Jack Park <jackp...@gmail.com> wrote: > Good question. > I have two extensions that use the parser thus: > > function getAppletOutput( $input, $args, $parser ) > > which contrasts with the wave function: > function waveRender($input, $argv, &$parser) as copied directly from the > file. > > I just removed the ampersand to > function waveRender($input, $argv, $parser) > and now it's "almost" working. Now I get a flood of errors such as: > > Use of undefined constant id - assumed 'id' in > C:\\Apache2.2\\htdocs\\mediawiki\\extensions\\GoogleWave\\GoogleWave.php > on line 38,... > > I then went in and found all the arg[] values and put ticks around them. > It's now working. Seems to take a long time to load my wave, and I now > need to play with width, height, etc, but it appears to have been a > few "typos" in GoogleWave.php that prevented it from working. > > Thanks > Jack > > On Wed, Oct 7, 2009 at 1:24 AM, Micke Nordin <mickew...@gmail.com> wrote: > > > I suspect there is something wrong with you MediaWiki installation and/ > > or your PHP installation as parameter 3 to waveRender is a reference > > to the parser object, that should be sent by the parser hook (by > > MediaWiki, that is). I have no idea as to why this doesn't work > > though... It is not surprising that you get no error message, because > > the problem is that the functions of the extension doesn't get called > > by the parser properly. Does other extensions with parser hooks work > > properly? Try to install any one of these extensions and see if you > > get the same error: > > >http://www.mediawiki.org/wiki/Category:ParserFirstCallInit_extensions > > > /Micke > ><snip> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Wave API" group. To post to this group, send email to google-wave-api@googlegroups.com To unsubscribe from this group, send email to google-wave-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=en -~----------~----~----~----~------~----~------~--~---