mirror of
https://github.com/friendica/friendica
synced 2025-05-02 10: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
|
@ -56,7 +56,7 @@ class OEmbed
|
|||
{
|
||||
$embedurl = trim($embedurl, '\'"');
|
||||
|
||||
$a = get_app();
|
||||
$a = \get_app();
|
||||
|
||||
$cache_key = 'oembed:' . $a->videowidth . ':' . $embedurl;
|
||||
|
||||
|
@ -364,7 +364,7 @@ class OEmbed
|
|||
*/
|
||||
private static function iframe($src, $width, $height)
|
||||
{
|
||||
$a = get_app();
|
||||
$a = \get_app();
|
||||
|
||||
if (!$height || strstr($height, '%')) {
|
||||
$height = '200';
|
||||
|
|
|
@ -811,7 +811,7 @@ class HTML
|
|||
public static function contactBlock()
|
||||
{
|
||||
$o = '';
|
||||
$a = get_app();
|
||||
$a = \get_app();
|
||||
|
||||
$shown = PConfig::get($a->profile['uid'], 'system', 'display_friend_count', 24);
|
||||
if ($shown == 0) {
|
||||
|
|
|
@ -44,7 +44,7 @@ class Widget
|
|||
*/
|
||||
public static function findPeople()
|
||||
{
|
||||
$a = get_app();
|
||||
$a = \get_app();
|
||||
$global_dir = Config::get('system', 'directory');
|
||||
|
||||
if (Config::get('system', 'invitation_only')) {
|
||||
|
@ -207,7 +207,7 @@ class Widget
|
|||
*/
|
||||
public static function categories($baseurl, $selected = '')
|
||||
{
|
||||
$a = get_app();
|
||||
$a = \get_app();
|
||||
|
||||
if (!Feature::isEnabled($a->profile['profile_uid'], 'categories')) {
|
||||
return '';
|
||||
|
@ -316,7 +316,7 @@ class Widget
|
|||
*/
|
||||
public static function tagCloud($limit = 50)
|
||||
{
|
||||
$a = get_app();
|
||||
$a = \get_app();
|
||||
|
||||
if (!$a->profile['profile_uid'] || !$a->profile['url']) {
|
||||
return '';
|
||||
|
|
|
@ -23,7 +23,7 @@ class CalendarExport
|
|||
* @return string Formated HTML of the calendar widget.
|
||||
*/
|
||||
public static function getHTML() {
|
||||
$a = get_app();
|
||||
$a = \get_app();
|
||||
|
||||
if (empty($a->data['user'])) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue