[Mediawiki-l] Load php in extension

Platonides Platonides at gmail.com
Sat May 15 22:27:21 UTC 2010


George Alexandru Dudău wrote:
> Hi all,
> 
> I want lo load in a mediawiki using extensions some mini aplications, 
> but i have a problem:
> 
> One of my javascript file load a php file (path is definited in the 
> javascript file).
> My aplication work standalone, but if i try to load in media wiki using 
> an extension (made by me), don't work.
> 
> example:
> 
> all links are resul from Firebug:
> 
> standalone path is:
> http://localhost/test/php/load.php?action=initialLoad
> 
> extension mediawiki:
> 
> http://localhost/mediawiki/index.php/php/load.php?action=initialLoad
> 
> how can i make mediawiki to load something like that:
> 
> http://localhost/mediawiki/extensions/dht/php/load.php?action=initialLoad
> 
> Thanks all!
> Geo

Cosntruct an absolute path. You can guess from $wgScriptPath, make it a
variable for our extension...





More information about the MediaWiki-l mailing list