What exactly do you mean by "load MediaWiki"? What's the use case? Maybe
try making your own entry point?
*-- *
*Tyler Romeo*
Stevens Institute of Technology, Class of 2015
Major in Computer Science
www.whizkidztech.com | tylerromeo(a)gmail.com
On Wed, May 22, 2013 at 11:16 AM, Jeroen De Dauw <jeroendedauw(a)gmail.com>wrote;wrote:
Hey,
I'd like to load MediaWiki from some PHP script and have not been able to
find a way to do this so far.
After someone suggested trying to do this as a maintenance script, I tried
http://pastebin.com/scKFxF2J
That however does not work as there is a check in doMaintenance.php
(shouldExecute) that makes sure initialization is only done when no
function calls are present in the call stack. My script is getting called
by some other library and thus there will clearly be function calls in the
call stack when doMaintenance.php is included. Is it even possible to load
MediaWiki in such a case? And what is this restriction in shouldExecute
good for?
Cheers
--
Jeroen De Dauw
http://www.bn2vs.com
Don't panic. Don't be evil.
--
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l