Changeset 768 for trunk/lib/App.inc.php
- Timestamp:
- Jun 9, 2022 7:24:04 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/App.inc.php
r767 r768 430 430 // DB credentials for CLI scripts stored in a JSON file with read rights given only to the user who will be executing the scripts: -r-------- 431 431 // But not if all DB credentials have been defined already by other means. 432 if ( $this->cli &&'' != $this->getParam('db_auth_file') && (!$this->getParam('db_server') || !$this->getParam('db_name') || !$this->getParam('db_user') || !$this->getParam('db_pass'))) {432 if ('' != $this->getParam('db_auth_file') && (!$this->getParam('db_server') || !$this->getParam('db_name') || !$this->getParam('db_user') || !$this->getParam('db_pass'))) { 433 433 if (false !== ($db_auth_file = stream_resolve_include_path($this->getParam('db_auth_file')))) { 434 434 if (is_readable($db_auth_file)) { … … 664 664 if ($num_queries > 0 && true === $this->getParam('enable_db_pdo')) { 665 665 // If the app wants to use PDO, warn if any legacy db queries are made. 666 $this->logMsg(sprintf('%s queries using legacy DB functions', $num_queries), LOG_ WARNING, __FILE__, __LINE__);666 $this->logMsg(sprintf('%s queries using legacy DB functions', $num_queries), LOG_DEBUG, __FILE__, __LINE__); 667 667 } 668 668 $this->db->close();
Note: See TracChangeset
for help on using the changeset viewer.