[Mediawiki-l] Programmatically getting the current page's title?

Jean-Christian Imbeault jci at gol.com
Mon Nov 29 12:00:43 UTC 2004


I am writing a custom extension. What is the best way in PHP to get the 
current page's/article title in PHP? I've seen that Title::getText() 
will work but I've also seen something called MagicWord with a PAGENAME 
attribute ...

Something that will work even when doing a 'preview'.

Thanks,

Jc




More information about the MediaWiki-l mailing list