From 486ff800878b529a8ee0276ac8bfd0b777a304f7 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sun, 11 Sep 2016 15:08:59 +0200 Subject: [PATCH] Fix media links when url rewriting is enabled --- wcfsetup/install/files/lib/data/media/Media.class.php | 2 +- wcfsetup/install/files/{media => media_files}/.htaccess | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename wcfsetup/install/files/{media => media_files}/.htaccess (100%) diff --git a/wcfsetup/install/files/lib/data/media/Media.class.php b/wcfsetup/install/files/lib/data/media/Media.class.php index 05c67dd786..819440a7dc 100644 --- a/wcfsetup/install/files/lib/data/media/Media.class.php +++ b/wcfsetup/install/files/lib/data/media/Media.class.php @@ -213,7 +213,7 @@ class Media extends DatabaseObject implements ILinkableObject, IRouteController, * @return string */ public static function getStorage() { - return WCF_DIR.'media/'; + return WCF_DIR.'media_files/'; } /** diff --git a/wcfsetup/install/files/media/.htaccess b/wcfsetup/install/files/media_files/.htaccess similarity index 100% rename from wcfsetup/install/files/media/.htaccess rename to wcfsetup/install/files/media_files/.htaccess -- 2.20.1