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
> 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
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
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;
> $
> 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
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 {