This repository was archived by the owner on Nov 27, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -409,18 +409,20 @@ public function __construct()
409
409
'Then run "<strong>php composer.phar install</strong>" to install them. '
410
410
);
411
411
412
- $ baseDir = basename (__DIR__ ) ;
412
+ $ cacheDir = is_dir (__DIR__ . ' /../var/cache ' ) ? __DIR__ . ' /../var/cache ' : __DIR__ . ' /cache ' ;
413
413
414
414
$ this ->addRequirement (
415
- is_writable (__DIR__ . ' /cache ' ),
416
- " $ baseDir /cache/ directory must be writable " ,
417
- " Change the permissions of the \ "<strong> $ baseDir /cache/</strong> \" directory so that the web server can write into it."
415
+ is_writable ($ cacheDir ),
416
+ ' app /cache/ or var/cache/ directory must be writable' ,
417
+ ' Change the permissions of either "<strong>app /cache/</strong>" or "<strong>var/cache/</strong>" directory so that the web server can write into it. '
418
418
);
419
419
420
+ $ logsDir = is_dir (__DIR__ .'/../var/logs ' ) ? __DIR__ .'/../var/logs ' : __DIR__ .'/logs ' ;
421
+
420
422
$ this ->addRequirement (
421
- is_writable (__DIR__ . ' /logs ' ),
422
- " $ baseDir /logs/ directory must be writable " ,
423
- " Change the permissions of the \ "<strong> $ baseDir /logs/</strong> \" directory so that the web server can write into it."
423
+ is_writable ($ logsDir ),
424
+ ' app /logs/ or var/logs/ directory must be writable' ,
425
+ ' Change the permissions of either "<strong>app /logs/</strong>" or "<strong>var/logs/</strong>" directory so that the web server can write into it. '
424
426
);
425
427
426
428
$ this ->addPhpIniRequirement (
You can’t perform that action at this time.
0 commit comments