Re: [Mediawiki-l] How best to set up hooks in an extension function ?

2009-07-03 Thread Richard Alan
Sebastien,Both of your replies to my post are empty. Can you please try again if you have a comment to make. Richard ___ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Re: [Mediawiki-l] How best to set up hooks in an extension function ?

2009-07-03 Thread sebastien bracq
> Date: Wed, 1 Jul 2009 18:21:29 +0800 > From: richard.philippi...@gmail.com > To: mediawiki-l@lists.wikimedia.org > Subject: Re: [Mediawiki-l] How best to set up hooks in an extension function ? > > Thanks Tim, > > Your advice was exactly what I needed. I'm

Re: [Mediawiki-l] How best to set up hooks in an extension function ?

2009-07-01 Thread Richard Alan
Thanks Tim, Your advice was exactly what I needed. I'm setting up my code like below. ABC's are replaced with real names and I've removed most of the code to just show the important parts. I took out the line: $wgExtensionFunctions[]= 'wfSetupCSS' and instead create a new class and then ca

Re: [Mediawiki-l] How best to set up hooks in an extension function ?

2009-06-30 Thread Tim Starling
Richard Alan wrote: > I thought I had read somewhere that it was not a good idea to set > function hooks inside of a class in this way. > what follows is just one of many examples out there: > > $wgExtensionFunctions[]= 'wfSetupCSS' > > function wfSetupCSS() { > global $wgCSS; > $

Re: [Mediawiki-l] How best to set up hooks in an extension function ?

2009-06-30 Thread sebastien bracq
> Date: Wed, 1 Jul 2009 02:25:09 +0800 > From: richard.philippi...@gmail.com > To: mediawiki-l@lists.wikimedia.org > Subject: [Mediawiki-l] How best to set up hooks in an extension function ? > > I thought I had read somewhere that it was not a good idea to set > funct

[Mediawiki-l] How best to set up hooks in an extension function ?

2009-06-30 Thread Richard Alan
I thought I had read somewhere that it was not a good idea to set function hooks inside of a class in this way. what follows is just one of many examples out there: $wgExtensionFunctions[]= 'wfSetupCSS' function wfSetupCSS() { global $wgCSS; $wgCSS = new CSS(); } class CSS {