That only works if you're writing a maintenance script of course. commandLine.inc (and its parent) bail out if the sapi != cli.
-Chad
On Jun 29, 2010 10:21 AM, "Daniel Barrett" danb@vistaprint.com wrote:
What about including "maintenance/commandLine.inc"? That gives scripts access to lots of MediaWiki functionality.
DanB
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimed...
Yes, tried this without success ... though there might be some workaround to the "sapi != cli" similar to the suggested solution for using LocalSettings.php above in the thread? ... anyway, it seems I can now use a SpecialPage instead, to implement the functionality. But many thanks for your replys!
Samuel
On 06/29/2010 07:56 PM, Chad wrote:
That only works if you're writing a maintenance script of course. commandLine.inc (and its parent) bail out if the sapi != cli.
-Chad
On Jun 29, 2010 10:21 AM, "Daniel Barrett"danb@vistaprint.com wrote:
What about including "maintenance/commandLine.inc"? That gives scripts access to lots of MediaWiki functionality.
DanB
MediaWiki-l mailing list MediaWiki-l@lists.wikimed... _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
On 30/06/10 05:48, Samuel Lampa wrote:
Yes, tried this without success ... though there might be some workaround to the "sapi != cli" similar to the suggested solution for using LocalSettings.php above in the thread?
Yes, use WebStart.php instead. WebStart.php does the same thing as commandLine.inc, except that WebStart.php is for web and commandLine.inc is for CLI. Trying to use commandLine.inc for web is just silly.
-- Tim Starling
mediawiki-l@lists.wikimedia.org