mediawiki-customizations
From DiSo wiki
These are customizations that have been done to the diso-project mediawiki instance.
OpenID extension
Installed the [OpenID extension](http://www.mediawiki.org/wiki/Extension:OpenID), linking it to the JanRain OpenID libs in the WP-OpenID plugin by adding those libs to the path in LocalSettings.php. Will and I (mostly Will) fixed a couple problems with the MW extension's Consumer.php to make it play nice with the newer JanRain libs.
147c147
< $response = $consumer->complete($_GET);
---
> $response = $consumer->complete($wgTrustRoot.$_SESSION['openid_process_url']);
165c165
< $sreg = $response->extensionResponse('sreg');
---
> $sreg = $response->extensionResponse('sreg',false);
369c369
<
---
> $_SESSION['openid_process_url'] = $process_url;
Also set the following in LocalSettings.php:
# path is set at the top, I just modified the existing path statement
$path = array( $IP, "$IP/includes", "$IP/languages", "$IP/../wp-content/plugins/openid" );
# these are added at the bottom with our other customizations (listed below)
require_once("$IP/extensions/OpenID/OpenID.php");
$wgTrustRoot = 'http://diso-project.org/';
Miscellaneous
wgCapitalLinks is set to false to allow lower-case-page-names. Rock (thanks Ryan King).
#MISC $wgCapitalLinks = false; $wgLogo = '/wiki/images/DISO-PROJECT-square-wiki.png';
ReCAPTCHA
#CAPTCHA require_once( "$IP/extensions/recaptcha/ReCaptcha.php" ); // Sign up for these at http://recaptcha.net/api/getkey $recaptcha_public_key = 'XXXXXX'; $recaptcha_private_key = 'XXXXXX';

