Page MenuHomePhabricator

D17917.id43099.diff
No OneTemporary

D17917.id43099.diff

diff --git a/src/infrastructure/env/PhabricatorConfigLocalSource.php b/src/infrastructure/env/PhabricatorConfigLocalSource.php
--- a/src/infrastructure/env/PhabricatorConfigLocalSource.php
+++ b/src/infrastructure/env/PhabricatorConfigLocalSource.php
@@ -21,8 +21,9 @@
private function loadConfig() {
$path = $this->getConfigPath();
- if (@file_exists($path)) {
- $data = @file_get_contents($path);
+ if (Filesystem::pathExists($path)) {
+ $data = Filesystem::readFile($path);
+
if ($data) {
$data = json_decode($data, true);
if (is_array($data)) {

File Metadata

Mime Type
text/plain
Expires
Mon, Mar 24, 12:44 AM (1 d, 38 m ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7719303
Default Alt Text
D17917.id43099.diff (601 B)

Event Timeline