On Tue, Mar 12, 2013 at 1:47 PM, Toni Hermoso Pulido <toni...@cau.cat>wrote:
> Hello, > > I'm checking whether I can detect that a process is run from a > maintenance script in a parser function extension. > > Which would be the best way / more recommendable to detect it? > > Thanks! > $wgCommandLineMode should be able to tell you, although I think checking if the RUN_MAINTENANCE_IF_MAIN constant is set is probably a better method. *--* *Tyler Romeo* Stevens Institute of Technology, Class of 2015 Major in Computer Science www.whizkidztech.com | tylerro...@gmail.com _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l