[Mediawiki-l] new article hook

Michael Heyder Info at hafenvolleyballer.de
Wed Jul 18 17:47:43 UTC 2007


Keir schrieb:
> Hi,
> 
> I was wondering if there was a way to call a function when the user tries to
> save a page, but only if it is a new page.  I can't find a hook for this.
> 
> Cheers
> 
> Keir Lawson

You can prove, if the article has an ID!=0
--------
if($title->mArticleID != '0') ....
--------

so long
m.h.




More information about the MediaWiki-l mailing list