From 104981603a870d76508a5c5c0d86db83f2772cc2 Mon Sep 17 00:00:00 2001 From: paladox Date: Sat, 4 Aug 2018 01:15:58 +0100 Subject: [PATCH] Update LocalWiki.php --- LocalWiki.php | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/LocalWiki.php b/LocalWiki.php index 34e0a62b99..bb1554331b 100644 --- a/LocalWiki.php +++ b/LocalWiki.php @@ -139,19 +139,14 @@ function onInactiveSiteNoticeAfter( &$siteNotice, $skin ) { ) { // T3415 $wgForeignFileRepos[] = [ - 'class' => 'ForeignDBRepo', + 'class' => 'ForeignDBViaLBRepo', 'name' => 'shared', 'directory' => '/mnt/mediawiki-static/repositoriowiki', 'url' => 'https://static.miraheze.org/repositoriowiki', 'hashLevels' => $wgHashedSharedUploadDirectory ? 2 : 0, - 'thumbScriptUrl' => $wgSharedThumbnailScriptPath, + 'thumbScriptUrl' => false, 'transformVia404' => !$wgGenerateThumbnailOnParse, - 'dbType' => $wgDBtype, - 'dbServer' => $wgDBserver, - 'dbUser' => $wgDBuser, - 'dbPassword' => $wgDBpassword, - 'dbName' => 'repositoriowiki', - 'dbFlags' => DBO_SSL, + 'wiki' => 'repositoriowiki', 'descBaseUrl' => 'https://repositorio.miraheze.org/wiki/File:', ];