Respect the directory settings inside the config when checking if they are writable.

This commit is contained in:
Paul Wilde 2014-05-20 19:51:40 +01:00
parent a6cd797b22
commit 9a8846f952

View File

@ -1,11 +1,14 @@
<?php
$themesDir = Config::get('cms.themesDir');
$uploadsDir = Config::get('cms.uploadsDir');
$warnings = [];
$writablePaths = [
'/themes',
'/uploads',
'/uploads/public',
'/uploads/protected',
$themesDir,
$uploadsDir,
$uploadsDir.'/public',
$uploadsDir.'/protected',
'/app/storage',
'/app/storage/logs',
'/app/storage/cache',