Merge pull request #186 from paulwilde/warning-dir-fix

Respect the directory settings inside the config when checking if they are writable.
This commit is contained in:
Samuel Georges 2014-05-21 07:31:22 +10:00
commit 635e5e5ba2
1 changed files with 7 additions and 4 deletions

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',