"^demon" posted a comment on MediaWiki.r107877.
URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/107877#c29061

Commit summary for MediaWiki.r107877:

code for restricting by NS

^demon's comment:

The way you've got it now, you're restricting based on the request title, not 
the page being parsed.

I don't think this is a good idea at all, but the better way is to 
unconditionally define it at registration time, and then conditionally output 
based on $parser->getTitle()'s namespace.

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

Reply via email to