]> git.mxchange.org Git - friendica.git/commitdiff
Merge branch '2019.01-rc' into bug/6334-escape-get-app
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 6 Jan 2019 21:38:48 +0000 (16:38 -0500)
committerGitHub <noreply@github.com>
Sun, 6 Jan 2019 21:38:48 +0000 (16:38 -0500)
57 files changed:
boot.php
include/api.php
include/enotify.php
include/items.php
mod/dfrn_request.php
mod/fbrowser.php
mod/item.php
mod/lostpass.php
mod/message.php
mod/nodeinfo.php
mod/ostatus_subscribe.php
mod/regmod.php
mod/repair_ostatus.php
mod/settings.php
src/BaseModule.php
src/Content/OEmbed.php
src/Content/Text/HTML.php
src/Content/Widget.php
src/Content/Widget/CalendarExport.php
src/Core/Console/DocBloxErrorChecker.php
src/Core/Console/GlobalCommunityBlock.php
src/Core/Console/GlobalCommunitySilence.php
src/Core/Console/NewPassword.php
src/Core/Console/PhpToPo.php
src/Core/Console/PoToPhp.php
src/Core/Console/Typo.php
src/Core/Theme.php
src/Core/Worker.php
src/Database/DBA.php
src/Model/Contact.php
src/Model/GContact.php
src/Model/Item.php
src/Model/Mail.php
src/Model/Photo.php
src/Model/Profile.php
src/Model/User.php
src/Network/FKOAuth1.php
src/Network/Probe.php
src/Object/Image.php
src/Protocol/DFRN.php
src/Protocol/Diaspora.php
src/Protocol/Feed.php
src/Protocol/OStatus.php
src/Protocol/PortableContact.php
src/Render/FriendicaSmarty.php
src/Render/FriendicaSmartyEngine.php
src/Util/ExAuth.php
src/Util/Network.php
src/Util/ParseUrl.php
src/Util/Temporal.php
tests/include/ApiTest.php
view/templates/infinite_scroll_head.tpl
view/templates/register.tpl
view/theme/frio/php/scheme.php
view/theme/frio/templates/register.tpl
view/theme/smoothly/theme.php
view/theme/vier/theme.php

index 4b95c89128ba32b96437a7297bc3e868c706d144..73f83e978a836c78e5ec6efaf154f2f53295a230 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -327,6 +327,8 @@ if (!defined('CURLE_OPERATION_TIMEDOUT')) {
  *
  * Useful in functions which require it but don't get it passed to them
  *
+ * @deprecated since version 2018.09
+ * @see BaseObject::getApp()
  * @return App
  */
 function get_app()
@@ -457,7 +459,7 @@ function notice($s)
                return;
        }
 
-       $a = get_app();
+       $a = \get_app();
        if (empty($_SESSION['sysmsg'])) {
                $_SESSION['sysmsg'] = [];
        }
@@ -475,7 +477,7 @@ function notice($s)
  */
 function info($s)
 {
-       $a = get_app();
+       $a = \get_app();
 
        if (local_user() && PConfig::get(local_user(), 'system', 'ignore_info')) {
                return;
@@ -538,7 +540,7 @@ function feed_birthday($uid, $tz)
  */
 function is_site_admin()
 {
-       $a = get_app();
+       $a = \get_app();
 
        $admin_email = Config::get('config', 'admin_email');
 
@@ -647,7 +649,7 @@ function get_server()
 
 function get_temppath()
 {
-       $a = get_app();
+       $a = \get_app();
 
        $temppath = Config::get("system", "temppath");
 
index ddcb8c8dcdb3fad71da3cb3e5152b225d68a88d2..22ed066bafb7a968aac62d897bbeff832c6d3d55 100644 (file)
@@ -430,7 +430,7 @@ function api_call(App $a)
  */
 function api_error($type, $e)
 {
-       $a = get_app();
+       $a = \get_app();
 
        $error = ($e->getMessage() !== "" ? $e->getMessage() : $e->httpdesc);
        /// @TODO:  https://dev.twitter.com/overview/api/response-codes
@@ -963,7 +963,7 @@ function api_format_data($root_element, $type, $data)
 function api_account_verify_credentials($type)
 {
 
-       $a = get_app();
+       $a = \get_app();
 
        if (api_user() === false) {
                throw new ForbiddenException();
@@ -1027,7 +1027,7 @@ function requestdata($k)
  */
 function api_statuses_mediap($type)
 {
-       $a = get_app();
+       $a = \get_app();
 
        if (api_user() === false) {
                Logger::log('api_statuses_update: no user');
@@ -1075,7 +1075,7 @@ api_register_func('api/statuses/mediap', 'api_statuses_mediap', true, API_METHOD
  */
 function api_statuses_update($type)
 {
-       $a = get_app();
+       $a = \get_app();
 
        if (api_user() === false) {
                Logger::log('api_statuses_update: no user');
@@ -1217,7 +1217,7 @@ api_register_func('api/statuses/update_with_media', 'api_statuses_update', true,
  */
 function api_media_upload()
 {
-       $a = get_app();
+       $a = \get_app();
 
        if (api_user() === false) {
                Logger::log('no user');
@@ -1261,7 +1261,7 @@ api_register_func('api/media/upload', 'api_media_upload', true, API_METHOD_POST)
  */
 function api_status_show($type, $item_id = 0)
 {
-       $a = get_app();
+       $a = \get_app();
 
        $user_info = api_get_user($a);
 
@@ -1360,7 +1360,7 @@ function api_status_show($type, $item_id = 0)
  */
 function api_users_show($type)
 {
-       $a = get_app();
+       $a = \get_app();
 
        $user_info = api_get_user($a);
 
@@ -1436,7 +1436,7 @@ api_register_func('api/externalprofile/show', 'api_users_show');
  */
 function api_users_search($type)
 {
-       $a = get_app();
+       $a = \get_app();
 
        $userlist = [];
 
@@ -1516,7 +1516,7 @@ api_register_func('api/users/lookup', 'api_users_lookup', true);
  */
 function api_search($type)
 {
-       $a = get_app();
+       $a = \get_app();
        $user_info = api_get_user($a);
 
        if (api_user() === false || $user_info === false) {
@@ -1577,7 +1577,7 @@ api_register_func('api/search', 'api_search', true);
  */
 function api_statuses_home_timeline($type)
 {
-       $a = get_app();
+       $a = \get_app();
        $user_info = api_get_user($a);
 
        if (api_user() === false || $user_info === false) {
@@ -1665,7 +1665,7 @@ api_register_func('api/statuses/friends_timeline', 'api_statuses_home_timeline',
  */
 function api_statuses_public_timeline($type)
 {
-       $a = get_app();
+       $a = \get_app();
        $user_info = api_get_user($a);
 
        if (api_user() === false || $user_info === false) {
@@ -1747,7 +1747,7 @@ api_register_func('api/statuses/public_timeline', 'api_statuses_public_timeline'
  */
 function api_statuses_networkpublic_timeline($type)
 {
-       $a = get_app();
+       $a = \get_app();
        $user_info = api_get_user($a);
 
        if (api_user() === false || $user_info === false) {
@@ -1802,7 +1802,7 @@ api_register_func('api/statuses/networkpublic_timeline', 'api_statuses_networkpu
  */
 function api_statuses_show($type)
 {
-       $a = get_app();
+       $a = \get_app();
        $user_info = api_get_user($a);
 
        if (api_user() === false || $user_info === false) {
@@ -1875,7 +1875,7 @@ api_register_func('api/statuses/show', 'api_statuses_show', true);
  */
 function api_conversation_show($type)
 {
-       $a = get_app();
+       $a = \get_app();
        $user_info = api_get_user($a);
 
        if (api_user() === false || $user_info === false) {
@@ -1954,7 +1954,7 @@ function api_statuses_repeat($type)
 {
        global $called_api;
 
-       $a = get_app();
+       $a = \get_app();
 
        if (api_user() === false) {
                throw new ForbiddenException();
@@ -2019,7 +2019,7 @@ api_register_func('api/statuses/retweet', 'api_statuses_repeat', true, API_METHO
  */
 function api_statuses_destroy($type)
 {
-       $a = get_app();
+       $a = \get_app();
 
        if (api_user() === false) {
                throw new ForbiddenException();
@@ -2060,7 +2060,7 @@ api_register_func('api/statuses/destroy', 'api_statuses_destroy', true, API_METH
  */
 function api_statuses_mentions($type)
 {
-       $a = get_app();
+       $a = \get_app();
        $user_info = api_get_user($a);
 
        if (api_user() === false || $user_info === false) {
@@ -2128,7 +2128,7 @@ api_register_func('api/statuses/replies', 'api_statuses_mentions', true);
  */
 function api_statuses_user_timeline($type)
 {
-       $a = get_app();
+       $a = \get_app();
        $user_info = api_get_user($a);
 
        if (api_user() === false || $user_info === false) {
@@ -2206,7 +2206,7 @@ api_register_func('api/statuses/user_timeline', 'api_statuses_user_timeline', tr
  */
 function api_favorites_create_destroy($type)
 {
-       $a = get_app();
+       $a = \get_app();
 
        if (api_user() === false) {
                throw new ForbiddenException();
@@ -2284,7 +2284,7 @@ function api_favorites($type)
 {
        global $called_api;
 
-       $a = get_app();
+       $a = \get_app();
        $user_info = api_get_user($a);
 
        if (api_user() === false || $user_info === false) {
@@ -2737,7 +2737,7 @@ function api_contactlink_to_array($txt)
  */
 function api_format_items_activities($item, $type = "json")
 {
-       $a = get_app();
+       $a = \get_app();
 
        $activities = [
                'like' => [],
@@ -2859,7 +2859,7 @@ function api_format_items_profiles($profile_row)
  */
 function api_format_items($r, $user_info, $filter_user = false, $type = "json")
 {
-       $a = get_app();
+       $a = \get_app();
 
        $ret = [];
 
@@ -3049,7 +3049,7 @@ api_register_func('api/lists/subscriptions', 'api_lists_list', true);
  */
 function api_lists_ownerships($type)
 {
-       $a = get_app();
+       $a = \get_app();
 
        if (api_user() === false) {
                throw new ForbiddenException();
@@ -3093,7 +3093,7 @@ api_register_func('api/lists/ownerships', 'api_lists_ownerships', true);
  */
 function api_lists_statuses($type)
 {
-       $a = get_app();
+       $a = \get_app();
 
        $user_info = api_get_user($a);
        if (api_user() === false || $user_info === false) {
@@ -3170,7 +3170,7 @@ api_register_func('api/lists/statuses', 'api_lists_statuses', true);
  */
 function api_statuses_f($qtype)
 {
-       $a = get_app();
+       $a = \get_app();
 
        if (api_user() === false) {
                throw new ForbiddenException();
@@ -3346,7 +3346,7 @@ api_register_func('api/friendships/incoming', 'api_friendships_incoming', true);
  */
 function api_statusnet_config($type)
 {
-       $a = get_app();
+       $a = \get_app();
 
        $name      = Config::get('config', 'sitename');
        $server    = $a->getHostName();
@@ -3410,7 +3410,7 @@ function api_ff_ids($type)
                throw new ForbiddenException();
        }
 
-       $a = get_app();
+       $a = \get_app();
 
        api_get_user($a);
 
@@ -3478,7 +3478,7 @@ api_register_func('api/followers/ids', 'api_followers_ids', true);
  */
 function api_direct_messages_new($type)
 {
-       $a = get_app();
+       $a = \get_app();
 
        if (api_user() === false) {
                throw new ForbiddenException();
@@ -3566,7 +3566,7 @@ api_register_func('api/direct_messages/new', 'api_direct_messages_new', true, AP
  */
 function api_direct_messages_destroy($type)
 {
-       $a = get_app();
+       $a = \get_app();
 
        if (api_user() === false) {
                throw new ForbiddenException();
@@ -3724,7 +3724,7 @@ api_register_func('api/friendships/destroy', 'api_friendships_destroy', true, AP
  */
 function api_direct_messages_box($type, $box, $verbose)
 {
-       $a = get_app();
+       $a = \get_app();
        if (api_user() === false) {
                throw new ForbiddenException();
        }
@@ -4353,7 +4353,7 @@ function api_account_update_profile_image($type)
        Contact::updateSelfFromUserID(api_user(), true);
 
        // Update global directory in background
-       $url = System::baseUrl() . '/profile/' . get_app()->user['nickname'];
+       $url = System::baseUrl() . '/profile/' . \get_app()->user['nickname'];
        if ($url && strlen(Config::get('system', 'directory'))) {
                Worker::add(PRIORITY_LOW, "Directory", $url);
        }
@@ -4668,7 +4668,7 @@ function post_photo_item($hash, $allow_cid, $deny_cid, $allow_gid, $deny_gid, $f
  */
 function prepare_photo_data($type, $scale, $photo_id)
 {
-       $a = get_app();
+       $a = \get_app();
        $user_info = api_get_user($a);
 
        if ($user_info === false) {
@@ -5209,7 +5209,7 @@ function api_best_nickname(&$contacts)
  */
 function api_friendica_group_show($type)
 {
-       $a = get_app();
+       $a = \get_app();
 
        if (api_user() === false) {
                throw new ForbiddenException();
@@ -5274,7 +5274,7 @@ api_register_func('api/friendica/group_show', 'api_friendica_group_show', true);
  */
 function api_friendica_group_delete($type)
 {
-       $a = get_app();
+       $a = \get_app();
 
        if (api_user() === false) {
                throw new ForbiddenException();
@@ -5336,7 +5336,7 @@ api_register_func('api/friendica/group_delete', 'api_friendica_group_delete', tr
  */
 function api_lists_destroy($type)
 {
-       $a = get_app();
+       $a = \get_app();
 
        if (api_user() === false) {
                throw new ForbiddenException();
@@ -5452,7 +5452,7 @@ function group_create($name, $uid, $users = [])
  */
 function api_friendica_group_create($type)
 {
-       $a = get_app();
+       $a = \get_app();
 
        if (api_user() === false) {
                throw new ForbiddenException();
@@ -5481,7 +5481,7 @@ api_register_func('api/friendica/group_create', 'api_friendica_group_create', tr
  */
 function api_lists_create($type)
 {
-       $a = get_app();
+       $a = \get_app();
 
        if (api_user() === false) {
                throw new ForbiddenException();
@@ -5515,7 +5515,7 @@ api_register_func('api/lists/create', 'api_lists_create', true, API_METHOD_POST)
  */
 function api_friendica_group_update($type)
 {
-       $a = get_app();
+       $a = \get_app();
 
        if (api_user() === false) {
                throw new ForbiddenException();
@@ -5589,7 +5589,7 @@ api_register_func('api/friendica/group_update', 'api_friendica_group_update', tr
  */
 function api_lists_update($type)
 {
-       $a = get_app();
+       $a = \get_app();
 
        if (api_user() === false) {
                throw new ForbiddenException();
@@ -5635,7 +5635,7 @@ api_register_func('api/lists/update', 'api_lists_update', true, API_METHOD_POST)
  */
 function api_friendica_activity($type)
 {
-       $a = get_app();
+       $a = \get_app();
 
        if (api_user() === false) {
                throw new ForbiddenException();
@@ -5679,7 +5679,7 @@ api_register_func('api/friendica/activity/unattendmaybe', 'api_friendica_activit
 */
 function api_friendica_notification($type)
 {
-       $a = get_app();
+       $a = \get_app();
 
        if (api_user() === false) {
                throw new ForbiddenException();
@@ -5715,7 +5715,7 @@ function api_friendica_notification($type)
  */
 function api_friendica_notification_seen($type)
 {
-       $a = get_app();
+       $a = \get_app();
        $user_info = api_get_user($a);
 
        if (api_user() === false || $user_info === false) {
@@ -5760,7 +5760,7 @@ api_register_func('api/friendica/notification', 'api_friendica_notification', tr
  */
 function api_friendica_direct_messages_setseen($type)
 {
-       $a = get_app();
+       $a = \get_app();
        if (api_user() === false) {
                throw new ForbiddenException();
        }
@@ -5809,7 +5809,7 @@ api_register_func('api/friendica/direct_messages_setseen', 'api_friendica_direct
  */
 function api_friendica_direct_messages_search($type, $box = "")
 {
-       $a = get_app();
+       $a = \get_app();
 
        if (api_user() === false) {
                throw new ForbiddenException();
@@ -5872,7 +5872,7 @@ api_register_func('api/friendica/direct_messages_search', 'api_friendica_direct_
  */
 function api_friendica_profile_show($type)
 {
-       $a = get_app();
+       $a = \get_app();
 
        if (api_user() === false) {
                throw new ForbiddenException();
index a4b0fd14b4f56c54e478bfce169708ef449bcb73..9edfaaca82b8e2ea2a5b46365b94ad74c859fd61 100644 (file)
@@ -28,7 +28,7 @@ use Friendica\Util\Strings;
  */
 function notification($params)
 {
-       $a = get_app();
+       $a = \get_app();
 
        // Temporary logging for finding the origin
        if (!isset($params['language']) || !isset($params['uid'])) {
index ddec2231d83cbf01eda4052e04e7e19ae793d0d5..db60519a2ce8d6ba8d247ae207ce11fe06642862 100644 (file)
@@ -203,8 +203,7 @@ function add_page_info_to_body($body, $texturl = false, $no_photos = false)
                        $body = $removedlink;
                }
 
-               $url = str_replace(['/', '.'], ['\/', '\.'], $matches[1]);
-               $removedlink = preg_replace("/\[url\=" . $url . "\](.*?)\[\/url\]/ism", '', $body);
+               $removedlink = preg_replace("/\[url\=" . preg_quote($matches[1], '/') . "\](.*?)\[\/url\]/ism", '', $body);
                if (($removedlink == "") || strstr($body, $removedlink)) {
                        $body = $removedlink;
                }
index 15e11c3dab33029f99eca968da730d2ad91c5b8e..9f0583711f703b71415b58e6485d38fc2e2ce799 100644 (file)
@@ -632,10 +632,7 @@ function dfrn_request_content(App $a)
 
                $page_desc = L10n::t("Please enter your 'Identity Address' from one of the following supported communications networks:");
 
-               $invite_desc = sprintf(
-                       L10n::t('If you are not yet a member of the free social web, <a href="%s">follow this link to find a public Friendica site and join us today</a>.'),
-                       get_server() . '/servers'
-               );
+               $invite_desc = L10n::t('If you are not yet a member of the free social web, <a href="%s">follow this link to find a public Friendica site and join us today</a>.', get_server() . '/servers');
 
                $o = Renderer::replaceMacros($tpl, [
                        '$header' => L10n::t('Friend/Connection Request'),
index 64af908aa6b71c840c5bd43f2ab69dd5cc0ff0b5..d5310f4577144600437f607b38da4451654e20f3 100644 (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'];
index 02a61ebefcac10981788834848ef471878293c4e..4617dfa02e8c10d81edbaf186d1cce46c300b3af 100644 (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;
index d36d32963d6bc368907e24a504f51a820d2ab400..cb2dd3ca3c9f03e565eb62f1218cba968016de64 100644 (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);
index 85ede744b9c62b2e81b90816ab855f53fc7bc9e6..3f1ec6a2e60db966132dc0244f3bee843e5aac35 100644 (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 = '';
index d1df2170406a6754a3a7d0202d5d4e61f794fa10..edfdda8737bd821a01c4d600d36a1b05dc81c754 100644 (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')) {
index 5d493db32c74b2fce0a7e7eeb5ac5c52face3a21..7f9725b85359ca7163078ef1a0f9c03610c397f6 100644 (file)
@@ -24,7 +24,7 @@ function ostatus_subscribe_content(App $a)
 
        $uid = local_user();
 
-       $a = get_app();
+       $a = \get_app();
 
        $counter = intval($_REQUEST['counter']);
 
index a772a78ce77e6b4ccdf9f2cc09317572b0defcbc..e03f28e85b098175dd65bea15ef4712f27b1326e 100644 (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)) {
index 3a3ce42067f0af5ec6db0e4e3bee6a56e06463df..5a6afd9fb4d4853af4391b073789157f553a28fe 100644 (file)
@@ -22,7 +22,7 @@ function repair_ostatus_content(App $a) {
 
        $uid = local_user();
 
-       $a = get_app();
+       $a = \get_app();
 
        $counter = intval($_REQUEST['counter']);
 
index 1ec3725dc389e5767c9ea5edde993e778b43ae6f..f60f9f5b5c8a44f48bd6ceaff0a23284db64ab1b 100644 (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")) {
index fe09693b3b6d15897d105cb2ae89b9bd49e22ca4..6c14d6ba77aa6b6838c90316cdd30773f2a9460d 100644 (file)
@@ -88,7 +88,7 @@ abstract class BaseModule extends BaseObject
         */
        public static function getFormSecurityToken($typename = '')
        {
-               $a = get_app();
+               $a = \get_app();
 
                $timestamp = time();
                $sec_hash = hash('whirlpool', $a->user['guid'] . $a->user['prvkey'] . session_id() . $timestamp . $typename);
@@ -116,7 +116,7 @@ abstract class BaseModule extends BaseObject
 
                $max_livetime = 10800; // 3 hours
 
-               $a = get_app();
+               $a = \get_app();
 
                $x = explode('.', $hash);
                if (time() > (IntVal($x[0]) + $max_livetime)) {
@@ -136,7 +136,7 @@ abstract class BaseModule extends BaseObject
        public static function checkFormSecurityTokenRedirectOnError($err_redirect, $typename = '', $formname = 'form_security_token')
        {
                if (!self::checkFormSecurityToken($typename, $formname)) {
-                       $a = get_app();
+                       $a = \get_app();
                        Logger::log('checkFormSecurityToken failed: user ' . $a->user['guid'] . ' - form element ' . $typename);
                        Logger::log('checkFormSecurityToken failed: _REQUEST data: ' . print_r($_REQUEST, true), Logger::DATA);
                        notice(self::getFormSecurityStandardErrorMessage());
@@ -147,7 +147,7 @@ abstract class BaseModule extends BaseObject
        public static function checkFormSecurityTokenForbiddenOnError($typename = '', $formname = 'form_security_token')
        {
                if (!self::checkFormSecurityToken($typename, $formname)) {
-                       $a = get_app();
+                       $a = \get_app();
                        Logger::log('checkFormSecurityToken failed: user ' . $a->user['guid'] . ' - form element ' . $typename);
                        Logger::log('checkFormSecurityToken failed: _REQUEST data: ' . print_r($_REQUEST, true), Logger::DATA);
                        header('HTTP/1.1 403 Forbidden');
index 243b2d949d9c3c2e1bc91ecdd384b3ebedbdf33b..6aa76a55ac124af15540286e26b2a7be1b0efe67 100644 (file)
@@ -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';
index adfc60eae16c19e3dcbd0e96ec93ca9148dc048f..f7ac040eec38a9fcaf947268c54f92267c195bef 100644 (file)
@@ -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) {
index 2a11cc59195a269efa2748ec484e3ba9b0c905eb..93206be5db6409a5da2a6e83b8f9dad2f110068a 100644 (file)
@@ -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 '';
index 7bfa73c60762beb061c102e4a1b9b0c41edc8153..8d9309a5bd4a3ccfb787f2663919fa09478c997b 100644 (file)
@@ -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;
index 224fe44fbf908df7d192e7db765cdb31afc27aa3..506e48f0fd5607d0d6d7a57f360780d9cfc0b263 100644 (file)
@@ -59,7 +59,7 @@ HELP;
                        throw new \RuntimeException('DocBlox isn\'t available.');
                }
 
-               $dir = get_app()->getBasePath();
+               $dir = \get_app()->getBasePath();
 
                //stack for dirs to search
                $dirstack = [];
index 2a19a9e7f3f0343a3b79da58ec189e65b0dbb0c3..d11aa6cf86ee0170be1f5a14fe007668739c7495 100644 (file)
@@ -39,7 +39,7 @@ HELP;
 
        protected function doExecute()
        {
-               $a = get_app();
+               $a = \get_app();
 
                if ($this->getOption('v')) {
                        $this->out('Class: ' . __CLASS__);
index a1753ede258dc749be9ce9d48c73fe6d0bfd1703..b0281241e360c003692ef92efeef0933cf543838 100644 (file)
@@ -47,7 +47,7 @@ HELP;
 
        protected function doExecute()
        {
-               $a = get_app();
+               $a = \get_app();
 
                if ($this->getOption('v')) {
                        $this->out('Class: ' . __CLASS__);
index 54d10af2077768edf4735a787efd3175ab6b9ef9..44cfc654e32be0385b24551cd3e46f9c01510053 100644 (file)
@@ -40,7 +40,7 @@ HELP;
 
        protected function doExecute()
        {
-               $a = get_app();
+               $a = \get_app();
 
                if ($this->getOption('v')) {
                        $this->out('Class: ' . __CLASS__);
index 4a3caf4bc22583d5b9393664a0678e0e6efcdd49..a5b04e949a5d2f4506aaba370f270d899f3cd6af 100644 (file)
@@ -51,7 +51,7 @@ HELP;
                        throw new \Asika\SimpleConsole\CommandArgsException('Too many arguments');
                }
 
-               $a = get_app();
+               $a = \get_app();
 
                $phpfile = realpath($this->getArgument(0));
 
index de5c80878e50e0dcea8dfe95802140a2603c98b1..c492f7424c0d8711e8868d69e602131c1db705a9 100644 (file)
@@ -47,7 +47,7 @@ HELP;
                        throw new \Asika\SimpleConsole\CommandArgsException('Too many arguments');
                }
 
-               $a = get_app();
+               $a = \get_app();
 
                $pofile = realpath($this->getArgument(0));
 
index 832fdc2bde0cac86c047aa08f438459287f84cd1..82357b475397ded28ae9e41ff5794cdea5af970a 100644 (file)
@@ -41,7 +41,7 @@ HELP;
                        throw new \Asika\SimpleConsole\CommandArgsException('Too many arguments');
                }
 
-               $a = get_app();
+               $a = \get_app();
 
                $php_path = $a->getConfigValue('config', 'php_path', 'php');
 
index 73fba22407d140111a360c3587ca654afbcd9122..1ea39d606c763556a8ab94934e5b98e61e217801 100644 (file)
@@ -47,7 +47,7 @@ class Theme
                        return $info;
                }
 
-               $a = get_app();
+               $a = \get_app();
                $stamp1 = microtime(true);
                $theme_file = file_get_contents("view/theme/$theme/theme.php");
                $a->saveTimestamp($stamp1, "file");
@@ -156,13 +156,13 @@ class Theme
                if ($root !== '' && $root[strlen($root) - 1] !== '/') {
                        $root = $root . '/';
                }
-               $theme_info = get_app()->theme_info;
+               $theme_info = \get_app()->theme_info;
                if (is_array($theme_info) && array_key_exists('extends', $theme_info)) {
                        $parent = $theme_info['extends'];
                } else {
                        $parent = 'NOPATH';
                }
-               $theme = get_app()->getCurrentTheme();
+               $theme = \get_app()->getCurrentTheme();
                $thname = $theme;
                $ext = substr($file, strrpos($file, '.') + 1);
                $paths = [
index 2c811e3bdab75ac961fb8c58be9bd00e3f0ef1c1..3a4be04381b754401d664e561210224fdee3b8e4 100644 (file)
@@ -35,7 +35,7 @@ class Worker
         */
        public static function processQueue($run_cron = true)
        {
-               $a = get_app();
+               $a = \get_app();
 
                self::$up_start = microtime(true);
 
@@ -206,7 +206,7 @@ class Worker
         */
        public static function execute($queue)
        {
-               $a = get_app();
+               $a = \get_app();
 
                $mypid = getmypid();
 
@@ -319,7 +319,7 @@ class Worker
         */
        private static function execFunction($queue, $funcname, $argv, $method_call)
        {
-               $a = get_app();
+               $a = \get_app();
 
                $mypid = getmypid();
 
index f1c0ead6afb186e4dc7dd8a532d7cc08809a8e17..15a6e4dbab747efda36af5902cf4227d095c52c1 100644 (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);
 
index 25434e25a0ab9f6c79112fa76b5835f2ee098749..669b1ac25f3b0bf023a4db56d50b1103b55653ac 100644 (file)
@@ -909,7 +909,7 @@ class Contact extends BaseObject
        public static function photoMenu(array $contact, $uid = 0)
        {
                // @todo Unused, to be removed
-               $a = get_app();
+               $a = \get_app();
 
                $contact_url = '';
                $pm_url = '';
@@ -1631,7 +1631,7 @@ class Contact extends BaseObject
        {
                $result = ['cid' => -1, 'success' => false, 'message' => ''];
 
-               $a = get_app();
+               $a = \get_app();
 
                // remove ajax junk, e.g. Twitter
                $url = str_replace('/#!/', '/', $url);
index c3d58aae74330f7395b9c3a0b47a4bb50d11cdc9..337a938a747c86fc2d307355753bd63e13a1ae55 100644 (file)
@@ -518,7 +518,7 @@ class GContact
         */
        public static function updateSuggestions()
        {
-               $a = get_app();
+               $a = \get_app();
 
                $done = [];
 
index 939ee43bf4f45b9dfda722969ac6c76960572fa4..ca6556d275e6325d3d68463e9bf0d8b87591e3ad 100644 (file)
@@ -1148,7 +1148,7 @@ class Item extends BaseObject
                if ($notify) {
                        // We have to avoid duplicates. So we create the GUID in form of a hash of the plink or uri.
                        // We add the hash of our own host because our host is the original creator of the post.
-                       $prefix_host = get_app()->getHostName();
+                       $prefix_host = \get_app()->getHostName();
                } else {
                        $prefix_host = '';
 
@@ -1238,7 +1238,7 @@ class Item extends BaseObject
 
        public static function insert($item, $force_parent = false, $notify = false, $dontcache = false)
        {
-               $a = get_app();
+               $a = \get_app();
 
                // If it is a posting where users should get notifications, then define it as wall posting
                if ($notify) {
@@ -2611,7 +2611,7 @@ class Item extends BaseObject
 
        public static function isRemoteSelf($contact, &$datarray)
        {
-               $a = get_app();
+               $a = \get_app();
 
                if (!$contact['remote_self']) {
                        return false;
index ec02311078bafea52dab1c45a70871b89ec90bbd..deedadeb0f4e2b816132163a85a40dc323b918c0 100644 (file)
@@ -28,7 +28,7 @@ class Mail
         */
        public static function send($recipient = 0, $body = '', $subject = '', $replyto = '')
        {
-               $a = get_app();
+               $a = \get_app();
 
                if (!$recipient) {
                        return -1;
index 4a9e11c55472deb4123d375dbcdf8c80284185ef..ca909a41cc13d752ae18b0458cf06933b0b6a6d0 100644 (file)
@@ -144,7 +144,7 @@ class Photo
                        $micro = System::baseUrl() . '/photo/' . $hash . '-6.' . $Image->getExt() . $suffix;
 
                        // Remove the cached photo
-                       $a = get_app();
+                       $a = \get_app();
                        $basepath = $a->getBasePath();
 
                        if (is_dir($basepath . "/photo")) {
index 39765e74ef0c4ebcc02d85f4217ac9f40b506ffc..49fb868e3a9f3307db49e6009dd5e8d71fd57538 100644 (file)
@@ -280,7 +280,7 @@ class Profile
         */
        private static function sidebar($profile, $block = 0, $show_connect = true)
        {
-               $a = get_app();
+               $a = \get_app();
 
                $o = '';
                $location = false;
@@ -555,7 +555,7 @@ class Profile
 
        public static function getBirthdays()
        {
-               $a = get_app();
+               $a = \get_app();
                $o = '';
 
                if (!local_user() || $a->is_mobile || $a->is_tablet) {
@@ -653,7 +653,7 @@ class Profile
 
        public static function getEventsReminderHTML()
        {
-               $a = get_app();
+               $a = \get_app();
                $o = '';
 
                if (!local_user() || $a->is_mobile || $a->is_tablet) {
@@ -1094,7 +1094,7 @@ class Profile
         */
        public static function openWebAuthInit($token)
        {
-               $a = get_app();
+               $a = \get_app();
 
                // Clean old OpenWebAuthToken entries.
                OpenWebAuthToken::purge('owt', '3 MINUTE');
index a1a722f4cc024edd3d7f8426ff58bc3c58cda5b7..edf28969c2e562b6aeff69995c6340f39de9fe30 100644 (file)
@@ -406,7 +406,7 @@ class User
         */
        public static function create(array $data)
        {
-               $a = get_app();
+               $a = \get_app();
                $return = ['user' => null, 'password' => ''];
 
                $using_invites = Config::get('system', 'invitation_only');
@@ -795,7 +795,7 @@ class User
                        return false;
                }
 
-               $a = get_app();
+               $a = \get_app();
 
                Logger::log('Removing user: ' . $uid);
 
index 51a558942dde3a4bc77f7c10c5c473363ab73b6d..43ef1257c53a0178cee8ca576e8a4ce739192d21 100644 (file)
@@ -36,7 +36,7 @@ class FKOAuth1 extends OAuthServer
        public function loginUser($uid)
        {
                Logger::log("FKOAuth1::loginUser $uid");
-               $a = get_app();
+               $a = \get_app();
                $record = DBA::selectFirst('user', [], ['uid' => $uid, 'blocked' => 0, 'account_expired' => 0, 'account_removed' => 0, 'verified' => 1]);
 
                if (!DBA::isResult($record)) {
index f61eed4192231b29cdd3e2c153bfc8308fbc0a46..d322c3ed278d33985b56dcc4e14d038b6752c822 100644 (file)
@@ -74,7 +74,7 @@ class Probe
         */
        private static function ownHost($host)
        {
-               $own_host = get_app()->getHostName();
+               $own_host = \get_app()->getHostName();
 
                $parts = parse_url($host);
 
index abce69a1c78f8583b7a5864a606f465096954de2..298a449b3d5f56d612150f440d4f79e07c355ede 100644 (file)
@@ -652,7 +652,7 @@ class Image
 
                $string = $this->asString();
 
-               $a = get_app();
+               $a = \get_app();
 
                $stamp1 = microtime(true);
                file_put_contents($path, $string);
@@ -730,7 +730,7 @@ class Image
                Logger::log('Image: guessType: '.$filename . ($fromcurl?' from curl headers':''), Logger::DEBUG);
                $type = null;
                if ($fromcurl) {
-                       $a = get_app();
+                       $a = \get_app();
                        $headers=[];
                        $h = explode("\n", $header);
                        foreach ($h as $l) {
@@ -798,7 +798,7 @@ class Image
                                } else {
                                        $tempfile = tempnam(get_temppath(), "cache");
 
-                                       $a = get_app();
+                                       $a = \get_app();
                                        $stamp1 = microtime(true);
                                        file_put_contents($tempfile, $img_str);
                                        $a->saveTimestamp($stamp1, "file");
index f8405ee92b0b5e50da64c6037254ae6dd9cc1f6f..5933ccf2891114e3d8579d4050c68bc10c924ee7 100644 (file)
@@ -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']);
index 152bc385d8f9758922839c6ec7fcc0d3c27fb154..ed583503411799c6b0735d1fd85d21148fed1029 100644 (file)
@@ -2298,7 +2298,7 @@ class Diaspora
         */
        private static function receiveRequestMakeFriend(array $importer, array $contact)
        {
-               $a = get_app();
+               $a = \get_app();
 
                if ($contact["rel"] == Contact::SHARING) {
                        DBA::update(
@@ -3057,7 +3057,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) {
index 67e5412e25110d301abfdadc15181789373e6b4e..91341328a1171dd21c3700c557c60edb42126e1a 100644 (file)
@@ -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);
index 1a6ce231d1f386e9ddddf26ca24660c6cac0a136..458fee162014b22e21fa313cb6b223a76daeca6d 100644 (file)
@@ -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);
index 3300b1d7abe28ce040caa1ebfea001308b56362a..c61fe128a1a4cd30c3aeba81cc14f92b5a1b5967 100644 (file)
@@ -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) {
index 413d746dcfce3620eabc87ddb0af38b8e8eb1285..deabd3baf2c0e0a8c6f5bba0dcfe0b66f0364887 100644 (file)
@@ -22,7 +22,7 @@ class FriendicaSmarty extends Smarty
        {
                parent::__construct();
 
-               $a = get_app();
+               $a = \get_app();
                $theme = $a->getCurrentTheme();
 
                // setTemplateDir can be set to an array, which Smarty will parse in order.
index 2b6d7a877b31e613da744f850c53882eeee01906..de078d233c20132223b0eea51cdde262d10b3912 100644 (file)
@@ -32,7 +32,7 @@ class FriendicaSmartyEngine implements ITemplateEngine
                        $s = new FriendicaSmarty();
                }
 
-               $r['$APP'] = get_app();
+               $r['$APP'] = \get_app();
 
                // "middleware": inject variables into templates
                $arr = [
@@ -54,7 +54,7 @@ class FriendicaSmartyEngine implements ITemplateEngine
 
        public function getTemplateFile($file, $root = '')
        {
-               $a = get_app();
+               $a = \get_app();
                $template = new FriendicaSmarty();
 
                // Make sure $root ends with a slash /
index aa163f6a9e28c52488a222c42fdb42b81f5f3427..28157c23ef7285bc3443c1f0abbb2ed4765ec225 100644 (file)
@@ -122,7 +122,7 @@ class ExAuth
         */
        private function isUser(array $aCommand)
        {
-               $a = get_app();
+               $a = \get_app();
 
                // Check if there is a username
                if (!isset($aCommand[1])) {
@@ -202,7 +202,7 @@ class ExAuth
         */
        private function auth(array $aCommand)
        {
-               $a = get_app();
+               $a = \get_app();
 
                // check user authentication
                if (sizeof($aCommand) != 4) {
index ab0958d6423ffae00d37a1b46792401c42b61ac7..0acad3e082af14ffeec1684618d9099568803d1d 100644 (file)
@@ -94,7 +94,7 @@ class Network
 
                $stamp1 = microtime(true);
 
-               $a = get_app();
+               $a = \get_app();
 
                $parts = parse_url($url);
                $path_parts = explode('/', defaults($parts, 'path', ''));
@@ -251,7 +251,7 @@ class Network
                        return CurlResult::createErrorCurl($url);
                }
 
-               $a = get_app();
+               $a = \get_app();
                $ch = curl_init($url);
 
                if (($redirects > 8) || (!$ch)) {
@@ -604,7 +604,7 @@ class Network
         */
        public static function finalUrl($url, $depth = 1, $fetchbody = false)
        {
-               $a = get_app();
+               $a = \get_app();
 
                $url = self::stripTrackingQueryParams($url);
 
index 062a809b6a9d74c7a6c52ba1676b11bec9d5eafb..70c5279cc84a42ce9314a202375cb2f1382c6fd5 100644 (file)
@@ -111,7 +111,7 @@ class ParseUrl
         */
        public static function getSiteinfo($url, $no_guessing = false, $do_oembed = true, $count = 1)
        {
-               $a = get_app();
+               $a = \get_app();
 
                $siteinfo = [];
 
index d121d59770657dc8e3b59a1efceef22567921a3b..b6392d72fc043f9e853d3e6315390e743c96a100 100644 (file)
@@ -126,7 +126,7 @@ class Temporal
         */
        public static function getDateofBirthField($dob)
        {
-               $a = get_app();
+               $a = \get_app();
 
                list($year, $month, $day) = sscanf($dob, '%4d-%2d-%2d');
 
index 91b41e01a2223661244223d1c06a1aa14561d10d..e4e654f464c23bd9685fed0828bf3ea84ec15a14 100644 (file)
@@ -1242,7 +1242,7 @@ class ApiTest extends DatabaseTest
                                'type' => 'image/png'
                        ]
                ];
-               $app = get_app();
+               $app = \get_app();
                $app->argc = 2;
 
                $result = api_media_upload();
index b46fb1844c2c5e2a04b6d183f79519b6b1002d81..f95d8cf993a80956733610fe7e1bdfda87050000 100644 (file)
@@ -3,6 +3,6 @@
        For the relevant js part look at function loadContent() in main.js. *}}
        var infinite_scroll = {
                "pageno"    : {{$pageno}},
-               "reload_uri": "{{$reload_uri}}"
+               "reload_uri": "{{$reload_uri nofilter}}"
        }
 </script>
index b3a6a2c0865c618e077cd22a9a28a76f7895304e..4da865d4cf1e259502bac1a263573853d8e93797 100644 (file)
@@ -46,7 +46,7 @@
        {{include file="field_password.tpl" field=$password2}}
 {{/if}}
 
-       <p id="register-nickname-desc" >{{$nickdesc}}</p>
+       <p id="register-nickname-desc" >{{$nickdesc nofilter}}</p>
 
        <div id="register-nickname-wrapper" >
                <label for="register-nickname" id="label-register-nickname" >{{$nicklabel}}</label>
index ddce673105e473320879d57b2ae066746f0753e5..2f091804394b3eade1d485a00dfb31b3afb0690a 100644 (file)
@@ -21,7 +21,7 @@ use Friendica\Core\PConfig;
 
 function get_scheme_info($scheme)
 {
-       $theme = get_app()->getCurrentTheme();
+       $theme = \get_app()->getCurrentTheme();
        $themepath = 'view/theme/' . $theme . '/';
        $scheme = PConfig::get(local_user(), 'frio', 'scheme', PConfig::get(local_user(), 'frio', 'scheme'));
 
index 7436d0d38d0918712a33ed8488516ad1cd2a4757..feb8035fa379a46f64b367a3c1560392e89067d1 100644 (file)
@@ -50,7 +50,7 @@
                <div id="register-nickname-wrapper" class="form-group">
                        <label for="register-nickname" id="label-register-nickname" >{{$nicklabel}}</label>
                        <input type="text" maxlength="60" size="32" name="nickname" id="register-nickname" class="form-control" value="{{$nickname}}">
-                       <span class="help-block" id="nickname_tip">{{$nickdesc}}</span>
+                       <span class="help-block" id="nickname_tip">{{$nickdesc nofilter}}</span>
                </div>
                <div id="register-nickname-end" ></div>
 
index 6168932e95242fc20548cc39a6862f08e9f11f03..9dd958fff40166b8edd94d014923b650e84d09bc 100644 (file)
@@ -107,7 +107,7 @@ if (! function_exists('_js_in_foot')) {
        function _js_in_foot() {
                /** @purpose insert stuff in bottom of page
                */
-               $a = get_app();
+               $a = \get_app();
                $ssl_state = null;
                $baseurl = System::baseUrl($ssl_state);
                $bottom['$baseurl'] = $baseurl;
index 89fea650bac1b6b2c531d09b9885d52f0703ad40..b9684ad8754ba7906a55be4c63fc7f6935b41d06 100644 (file)
@@ -129,7 +129,7 @@ function get_vier_config($key, $default = false, $admin = false)
 
 function vier_community_info()
 {
-       $a = get_app();
+       $a = \get_app();
 
        $show_pages      = get_vier_config("show_pages", 1);
        $show_profiles   = get_vier_config("show_profiles", 1);