From d7261fc653d5935ad2d9d0f4a43c2aec46e81e37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=B9=E3=83=84=E3=82=BC=E3=83=AB?= Date: Sun, 25 Jun 2023 15:27:48 +0300 Subject: [PATCH] =?UTF-8?q?#4=20=D0=A0=D0=B0=D1=81=D1=88=D0=B8=D1=80=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D1=84=D0=BE=D1=80=D0=BC=D0=B0=D1=82=D1=8B=20?= =?UTF-8?q?=D0=B4=D0=BB=D1=8F=20=D0=B7=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=BA?= =?UTF-8?q?=D0=B8=20=D1=84=D0=B0=D0=B9=D0=BB=D0=BE=D0=B2=20(#5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #4 Reviewed-on: https://gitea.stuzer.link/stuzer05/docker-mediawiki/pulls/5 --- build/mediawiki_override/LocalSettings.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build/mediawiki_override/LocalSettings.php b/build/mediawiki_override/LocalSettings.php index 9e4eab8..a66f879 100644 --- a/build/mediawiki_override/LocalSettings.php +++ b/build/mediawiki_override/LocalSettings.php @@ -60,6 +60,9 @@ $wgEmailAuthentication = true; // To enable image uploads, make sure the 'images' directory // is writable, then set this to true: $wgEnableUploads = true; +$wgFileExtensions = array_merge($wgFileExtensions, [ + 'doc', 'xls', 'pdf', 'ppt', 'xlsx', +]); // $wgUseImageMagick = true; // $wgImageMagickConvertCommand = "/usr/bin/convert"; // $wgFileExtensions = [];