mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-11 09:34:26 +02:00
Escape global namespaced get_app() calls
- Add deprecated status
This commit is contained in:
parent
b8030313e5
commit
5e1ceb57de
52 changed files with 135 additions and 133 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue