Skip to content

Instantly share code, notes, and snippets.

@addshore
Last active February 21, 2022 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save addshore/760b770427eb81d4d1ee14eb331246ea to your computer and use it in GitHub Desktop.
Save addshore/760b770427eb81d4d1ee14eb331246ea to your computer and use it in GitHub Desktop.
Wikibase test system files
$wgWBRepoSettings['federatedPropertiesEnabled'] = true;
# simulate source API errors via request header
if( isset ( $_SERVER['HTTP_X_FEDPROPS_SOURCEAPIRESPONSE'] ) ) {
$wgParserCacheType = CACHE_NONE;
$code = $_SERVER['HTTP_X_FEDPROPS_SOURCEAPIRESPONSE'];
if( $code == 404 ) {
$wgWBRepoSettings['federatedPropertiesSourceScriptUrl'] = 'http://notFound.404';
}
}
<?php
wfLoadExtension( 'ConfirmEdit/QuestyCaptcha' );
$wgCaptchaQuestions = [
'What animal' => 'dog',
];
$wgCaptchaTriggers['createaccount'] = true;
$wgNamespaceProtection[NS_MAIN] = ['move'];
$wgNamespaceProtection[NS_TALK] = ['move'];
$wgNamespaceProtection[NS_USER] = ['move'];
$wgNamespaceProtection[NS_USER_TALK] = ['move'];
error_reporting( -1 );
ini_set( 'display_errors', 1 );
$wgShowExceptionDetails = true;
$wgShowSQLErrors = true;
$wgDebugDumpSql = true;
$wgShowDBErrorBacktrace = true;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment