[Mediawiki-l] Common php code included more than once from two extensions

Michael Daly mikedaly at magma.ca
Mon Apr 23 01:10:45 UTC 2007


Rob Church wrote:

> The classic approach to headers and includes, perhaps?
> 
> if( !defined( 'MYINCLUDE' ) ) {
>    // all the include code
>    define( 'MYINCLUDE', true );
> }

Aah, like C/C++ - shows I'm a PHP newbie.

Thanks!

Mike



More information about the MediaWiki-l mailing list