diff --git a/administrator/components/com_media/models/list.php b/administrator/components/com_media/models/list.php index 2d890a719783f..f0def2679b353 100644 --- a/administrator/components/com_media/models/list.php +++ b/administrator/components/com_media/models/list.php @@ -114,7 +114,7 @@ public function getList() $mediaBase = str_replace(DIRECTORY_SEPARATOR, '/', COM_MEDIA_BASE . '/'); // Reset base path - if (strpos(realpath($basePath), JPath::clean(COM_MEDIA_BASE)) !== 0) + if (strpos(realpath($basePath), JPath::clean(realpath(COM_MEDIA_BASE))) !== 0) { $basePath = COM_MEDIA_BASE; }