On Fri, Jan 24, 2014 at 9:35 AM, Tim Landscheidt tim@tim-landscheidt.dewrote:
Hi,
to test changes to operations/mediawiki-config, I'd like to display the settings for a given wiki.
So far I figured out:
| <?php
| $IP = 'wmf-config'; | $cluster = 'pmtpa';
| require ('/home/tim/public_html/w/includes/SiteConfiguration.php'); | require ('wmf-config/wgConf.php');
| var_dump ($wgConf->getAll ([...]));
However, all my creativity regarding parameters to getAll() only returned an empty array.
What would be the parameters needed for example to get the settings for de.wikipedia.org?
Are you saying you want to display the settings for your own wiki or someone else's wiki (whose backend you can't access)? If it's your own wiki, you can use ViewFileshttps://www.mediawiki.org/wiki/Extension:ViewFilesto let people access a special page that will display a configuration file.