Page MenuHomestyx hydra

No OneTemporary

diff --git a/src/applications/config/check/PhabricatorSetupCheckStorage.php b/src/applications/config/check/PhabricatorSetupCheckStorage.php
index 70fe5bf386..dd2d009f3d 100644
--- a/src/applications/config/check/PhabricatorSetupCheckStorage.php
+++ b/src/applications/config/check/PhabricatorSetupCheckStorage.php
@@ -1,27 +1,29 @@
<?php
final class PhabricatorSetupCheckStorage extends PhabricatorSetupCheck {
protected function executeChecks() {
- $local_key = 'storage.local-disk.path';
- $local_path = PhabricatorEnv::getEnvConfig($local_key);
+ $local_path = PhabricatorEnv::getEnvConfig('storage.local-disk.path');
+ if (!$local_path) {
+ return;
+ }
if (!Filesystem::pathExists($local_path) ||
!is_readable($local_path) ||
!is_writable($local_path)) {
$message = pht(
'Configured location for storing uploaded files on disk ("%s") does '.
'not exist, or is not readable or writable. Verify the directory '.
'exists and is readable and writable by the webserver.',
$local_path);
$this
->newIssue('config.storage.local-disk.path')
->setShortName(pht('Local Disk Storage'))
->setName(pht('Local Disk Storage Not Readable/Writable'))
->setMessage($message)
->addPhabricatorConfig('storage.local-disk.path');
}
}
}

File Metadata

Mime Type
text/x-diff
Expires
Tue, Dec 2, 11:30 AM (1 d, 4 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
431846
Default Alt Text
(1 KB)

Event Timeline