1
0
Fork 0

Escape global namespaced get_app() calls

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

View file

@ -72,7 +72,7 @@ function fbrowser_content(App $a)
function _map_files1($rr)
{
$a = get_app();
$a = \get_app();
$types = Image::supportedTypes();
$ext = $types[$rr['type']];
$filename_e = $rr['filename'];
@ -116,7 +116,7 @@ function fbrowser_content(App $a)
function _map_files2($rr)
{
$a = get_app();
$a = \get_app();
list($m1,$m2) = explode("/", $rr['filetype']);
$filetype = ( (file_exists("images/icons/$m1.png"))?$m1:"zip");
$filename_e = $rr['filename'];

View file

@ -853,7 +853,7 @@ function item_post(App $a) {
function item_post_return($baseurl, $api_source, $return_path)
{
// figure out how to return, depending on from whence we came
$a = get_app();
$a = \get_app();
if ($api_source) {
return;

View file

@ -127,7 +127,7 @@ function lostpass_form()
function lostpass_generate_password($user)
{
$o = '';
$a = get_app();
$a = \get_app();
$new_password = User::generateNewPassword();
$result = User::updatePassword($user['uid'], $new_password);

View file

@ -502,7 +502,7 @@ function get_messages($uid, $start, $limit)
function render_messages(array $msg, $t)
{
$a = get_app();
$a = \get_app();
$tpl = Renderer::getMarkupTemplate($t);
$rslt = '';

View file

@ -145,7 +145,7 @@ function nodeinfo_init(App $a) {
function nodeinfo_cron() {
$a = get_app();
$a = \get_app();
// If the addon 'statistics_json' is enabled then disable it and activate nodeinfo.
if (Addon::isEnabled('statistics_json')) {

View file

@ -24,7 +24,7 @@ function ostatus_subscribe_content(App $a)
$uid = local_user();
$a = get_app();
$a = \get_app();
$counter = intval($_REQUEST['counter']);

View file

@ -15,7 +15,7 @@ use Friendica\Module\Login;
function user_allow($hash)
{
$a = get_app();
$a = \get_app();
$register = Register::getByHash($hash);
if (!DBA::isResult($register)) {

View file

@ -22,7 +22,7 @@ function repair_ostatus_content(App $a) {
$uid = local_user();
$a = get_app();
$a = \get_app();
$counter = intval($_REQUEST['counter']);

View file

@ -30,7 +30,7 @@ use Friendica\Util\Temporal;
function get_theme_config_file($theme)
{
$a = get_app();
$a = \get_app();
$base_theme = defaults($a->theme_info, 'extends');
if (file_exists("view/theme/$theme/config.php")) {