mirror of
https://github.com/friendica/friendica
synced 2025-04-29 14:24:22 +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
|
@ -137,7 +137,7 @@ class DFRN
|
|||
*/
|
||||
public static function feed($dfrn_id, $owner_nick, $last_update, $direction = 0, $onlyheader = false)
|
||||
{
|
||||
$a = get_app();
|
||||
$a = \get_app();
|
||||
|
||||
$sitefeed = ((strlen($owner_nick)) ? false : true); // not yet implemented, need to rewrite huge chunks of following logic
|
||||
$public_feed = (($dfrn_id) ? false : true);
|
||||
|
@ -1160,7 +1160,7 @@ class DFRN
|
|||
*/
|
||||
public static function deliver($owner, $contact, $atom, $dissolve = false, $legacy_transport = false)
|
||||
{
|
||||
$a = get_app();
|
||||
$a = \get_app();
|
||||
|
||||
// At first try the Diaspora transport layer
|
||||
if (!$dissolve && !$legacy_transport) {
|
||||
|
@ -1420,7 +1420,7 @@ class DFRN
|
|||
*/
|
||||
public static function transmit($owner, $contact, $atom, $public_batch = false)
|
||||
{
|
||||
$a = get_app();
|
||||
$a = \get_app();
|
||||
|
||||
if (!$public_batch) {
|
||||
if (empty($contact['addr'])) {
|
||||
|
@ -1894,7 +1894,7 @@ class DFRN
|
|||
*/
|
||||
private static function processSuggestion($xpath, $suggestion, $importer)
|
||||
{
|
||||
$a = get_app();
|
||||
$a = \get_app();
|
||||
|
||||
Logger::log("Processing suggestions");
|
||||
|
||||
|
@ -2457,7 +2457,7 @@ class DFRN
|
|||
|
||||
/// @todo Do we really need this check for HTML elements? (It was copied from the old function)
|
||||
if ((strpos($item['body'], '<') !== false) && (strpos($item['body'], '>') !== false)) {
|
||||
$base_url = get_app()->getBaseURL();
|
||||
$base_url = \get_app()->getBaseURL();
|
||||
$item['body'] = HTML::relToAbs($item['body'], $base_url);
|
||||
|
||||
$item['body'] = HTML::toBBCodeVideo($item['body']);
|
||||
|
|
|
@ -2305,7 +2305,7 @@ class Diaspora
|
|||
*/
|
||||
private static function receiveRequestMakeFriend(array $importer, array $contact)
|
||||
{
|
||||
$a = get_app();
|
||||
$a = \get_app();
|
||||
|
||||
if ($contact["rel"] == Contact::SHARING) {
|
||||
DBA::update(
|
||||
|
@ -3064,7 +3064,7 @@ class Diaspora
|
|||
*/
|
||||
public static function transmit(array $owner, array $contact, $envelope, $public_batch, $queue_run = false, $guid = "", $no_queue = false)
|
||||
{
|
||||
$a = get_app();
|
||||
$a = \get_app();
|
||||
|
||||
$enabled = intval(Config::get("system", "diaspora_enabled"));
|
||||
if (!$enabled) {
|
||||
|
|
|
@ -35,7 +35,7 @@ class Feed {
|
|||
*/
|
||||
public static function import($xml, $importer, &$contact, &$hub, $simulate = false) {
|
||||
|
||||
$a = get_app();
|
||||
$a = \get_app();
|
||||
|
||||
if (!$simulate) {
|
||||
Logger::log("Import Atom/RSS feed '".$contact["name"]."' (Contact ".$contact["id"].") for user ".$importer["uid"], Logger::DEBUG);
|
||||
|
|
|
@ -1266,7 +1266,7 @@ class OStatus
|
|||
*/
|
||||
private static function addHeader(DOMDocument $doc, array $owner, $filter, $feed_mode = false)
|
||||
{
|
||||
$a = get_app();
|
||||
$a = \get_app();
|
||||
|
||||
$root = $doc->createElementNS(NAMESPACE_ATOM1, 'feed');
|
||||
$doc->appendChild($root);
|
||||
|
|
|
@ -63,7 +63,7 @@ class PortableContact
|
|||
*/
|
||||
public static function load($cid, $uid, $zcid, $url)
|
||||
{
|
||||
$a = get_app();
|
||||
$a = \get_app();
|
||||
|
||||
if ($cid) {
|
||||
if (!$url || !$uid) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue