From: Matthias Schmidt Date: Sun, 11 Sep 2016 13:08:59 +0000 (+0200) Subject: Fix media links when url rewriting is enabled X-Git-Tag: 3.0.0_Beta_1~213 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=486ff800878b529a8ee0276ac8bfd0b777a304f7;p=GitHub%2FWoltLab%2FWCF.git Fix media links when url rewriting is enabled --- 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/.htaccess deleted file mode 100644 index 3418e55a68..0000000000 --- a/wcfsetup/install/files/media/.htaccess +++ /dev/null @@ -1 +0,0 @@ -deny from all \ No newline at end of file diff --git a/wcfsetup/install/files/media_files/.htaccess b/wcfsetup/install/files/media_files/.htaccess new file mode 100644 index 0000000000..3418e55a68 --- /dev/null +++ b/wcfsetup/install/files/media_files/.htaccess @@ -0,0 +1 @@ +deny from all \ No newline at end of file