Escape global namespaced get_app() calls

- Add deprecated status
This commit is contained in:
Hypolite Petovan 2018-12-27 19:22:35 -05:00
parent b8030313e5
commit 5e1ceb57de
52 changed files with 135 additions and 133 deletions

View file

@ -208,7 +208,7 @@ class DBA
* @param string $query The database query that will be analyzed
*/
private static function logIndex($query) {
$a = get_app();
$a = \get_app();
if (!$a->getConfigVariable('system', 'db_log_index')) {
return;
@ -388,7 +388,7 @@ class DBA
* @return bool|object statement object or result object
*/
public static function p($sql) {
$a = get_app();
$a = \get_app();
$stamp1 = microtime(true);
@ -606,7 +606,7 @@ class DBA
* @return boolean Was the query successfull? False is returned only if an error occurred
*/
public static function e($sql) {
$a = get_app();
$a = \get_app();
$stamp = microtime(true);
@ -770,7 +770,7 @@ class DBA
* @return array current row
*/
public static function fetch($stmt) {
$a = get_app();
$a = \get_app();
$stamp1 = microtime(true);
@ -1518,7 +1518,7 @@ class DBA
* @return boolean was the close successful?
*/
public static function close($stmt) {
$a = get_app();
$a = \get_app();
$stamp1 = microtime(true);