Changeset 746 for trunk/lib/App.inc.php
- Timestamp:
- May 31, 2021 1:51:18 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/App.inc.php
r743 r746 429 429 // But not if all DB credentials have been defined already by other means. 430 430 if ($this->cli && '' != $this->getParam('db_auth_file') && (!$this->getParam('db_server') || !$this->getParam('db_name') || !$this->getParam('db_user') || !$this->getParam('db_pass'))) { 431 if (false !== $db_auth_file = stream_resolve_include_path($this->getParam('db_auth_file'))) {431 if (false !== ($db_auth_file = stream_resolve_include_path($this->getParam('db_auth_file')))) { 432 432 if (is_readable($db_auth_file)) { 433 433 $db_auth = json_decode(file_get_contents($db_auth_file), true); … … 622 622 623 623 // Set the application version if defined. 624 if (false !== $site_version_file = stream_resolve_include_path($this->getParam('site_version_file'))) {624 if (false !== ($site_version_file = stream_resolve_include_path($this->getParam('site_version_file')))) { 625 625 if (mb_strpos($site_version_file, '.json') !== false) { 626 626 $version_json = json_decode(trim(file_get_contents($site_version_file)), true);
Note: See TracChangeset
for help on using the changeset viewer.