This extension is used in the implementation of the Wikipedia Zero Portal initiative:
<https://wikimediafoundation.org/wiki/Wikipedia_Zero>.

See ZeroBanner extension README before before reading.
ZeroPortal is only enabled on zero.wikimedia.org

== ZeroPortal configuration ==

To test on your own vagrant instance, follow instructions in ZeroBanner extension's README

// DUAL test configuration:
// pulls banner settings from zero api, but allows local values to be stored
// add these custom settings

$wgJsonConfigs['JsonZeroConfig'] = array(
	'namespace' => NS_ZERO,
	'nsname' => 'Zero',
	'islocal' => false,
	'url' => 'https://zero.wikimedia.org/w/api.php',
	'username' => $wmgZeroPortalApiUserName,
	'password' => $wmgZeroPortalApiPassword,
);

// If you set 'islocal' to true and remove url, username, password, you don't need this one
$wgJsonConfigs['JsonZeroConfig-local'] = array(
	'model' => 'JsonZeroConfig',
	'namespace' => 18000, // some junk number, anything would work as long as there is no conflict
	'nsname' => 'Zero',
	'islocal' => true,
);

$wgGroupPermissions['zeroadmin']['zero-edit'] = true;
$wgGroupPermissions['zeroadmin']['zero-script'] = true;
