On 29 July 2014 18:06, Kevin Israel <[email protected]> wrote: > On 07/29/2014 11:43 AM, Alex Monk wrote: > > Argh. Apparently ctrl+enter sends the message, whoops. Anyway, otherwise > > you can use RequestContext::getMain()->getWikiPage()->getId(); > > > > > > On 29 July 2014 16:42, Alex Monk <[email protected]> wrote: > > > >> You may already have an OutputPage object, which is a context source. If > >> so you can just do $out->getWikiPage()->getId(); > > RequestContext and WikiPage were added in MW 1.18, so they won't be > available in the (very old, no longer supported) "pre v1.16" version > stated in the question. >
Yeah, not sure how I missed that bit. But we shouldn't be supporting anything other than 1.19.x, 1.22.x, and 1.23.x now. _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
