> On Tue, Dec 18, 2012 at 4:48 PM, Yury Katkov <[email protected]> wrote:
>> Hi guys!
>>
>> I'm writing the EditPage::showEditForm:fields and I want to get a
>> Request object. The use of wgRequest considered to be deprecated, so
>> how is it possible to get request object in my hook function?
>>
>>      static public function showBacklinks($editpage, &$output){
>>          return true;
>>      }

OutputPage is a context source, so you can do $output->getRequest().
Less nicer way is $editpage->getArticle()->getContext()->getRequest().

  -Niklas

--
Niklas Laxström

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

Reply via email to