Re: Non-complicated way to display configuration for a given wiki?
On Fri, Jan 24, 2014 at 9:35 AM, Tim Landscheidt <[hidden email]>wrote:
> 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
> ViewFiles<https://www.mediawiki.org/wiki/Extension:ViewFiles>to let
> people access a special page that will display a configuration file.
My use case at hand is the migration of wiki.toolserver.org
to WMF. The former uses a traditional LocalSettings.php,
and I want to test whether a patch to
operations/mediawiki-config results in an equivalent config-