On Mon, May 31, 2010 at 5:38 AM, Adam Meyer <[email protected]> wrote:
> I have a simple tage extension that I wrote. It currently gets the name of 
> the article through $_GET['article']
>
> However this is an issue where pages that are not the main name space do not 
> work because $_GET['article'] ends up equaling something like 
> nameSpace:articleName
>
> Is there a way to grab the article name and name space separately?
> It would be even better if I could access the page id.

Look in Title.php and use these, for example:

$wgTitle->getDBkey();
$wgTitle->getNamespace();

Good luck.

-- 
Lucas 'TOR' Garczewski
Wikia Tech Team

_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to