Last active
February 21, 2022 14:24
-
-
Save addshore/760b770427eb81d4d1ee14eb331246ea to your computer and use it in GitHub Desktop.
Wikibase test system files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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'; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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