From 03ebfb6b42f326a0fe8ebd5fb064a3d78abd4fc0 Mon Sep 17 00:00:00 2001
From: nupplaPhil
You can download the source code of the addon. The rest of Friendica is distributed under compatible licenses and can be retrieved from https://github.com/friendica/friendica and https://github.com/friendica/friendica-addons
'; + $b .= 'This site uses the jappixmini addon, which includes Jappix Mini by the Jappix authors and is distributed under the terms of the GNU Affero General Public License.
'; + $b .= 'You can download the source code of the addon. The rest of Friendica is distributed under compatible licenses and can be retrieved from https://github.com/friendica/friendica and https://github.com/friendica/friendica-addons
'; } diff --git a/js_upload/js_upload.php b/js_upload/js_upload.php index f151e1cf..55151cbc 100644 --- a/js_upload/js_upload.php +++ b/js_upload/js_upload.php @@ -13,7 +13,7 @@ use Friendica\Core\Hook; use Friendica\Core\L10n; use Friendica\Core\Logger; use Friendica\Core\Renderer; -use Friendica\Registry\App as A; +use Friendica\Registry\App as AppR; function js_upload_install() { @@ -27,8 +27,8 @@ function js_upload_form(App $a, array &$b) { $b['default_upload'] = false; - A::page()->registerStylesheet('addon/js_upload/file-uploader/client/fileuploader.css'); - A::page()->registerFooterScript('addon/js_upload/file-uploader/client/fileuploader.js'); + AppR::page()->registerStylesheet('addon/js_upload/file-uploader/client/fileuploader.css'); + AppR::page()->registerFooterScript('addon/js_upload/file-uploader/client/fileuploader.js'); $tpl = Renderer::getMarkupTemplate('js_upload.tpl', 'addon/js_upload'); $b['addon_text'] .= Renderer::replaceMacros($tpl, [ diff --git a/langfilter/langfilter.php b/langfilter/langfilter.php index f3e0d608..bc266d71 100644 --- a/langfilter/langfilter.php +++ b/langfilter/langfilter.php @@ -13,7 +13,7 @@ use Friendica\Core\Hook; use Friendica\Core\L10n; use Friendica\Core\PConfig; use Friendica\Core\Renderer; -use Friendica\Registry\App as A; +use Friendica\Registry\App as AppR; /* Define the hooks we want to use * that is, we have settings, we need to save the settings and we want @@ -123,7 +123,7 @@ function langfilter_prepare_body_content_filter(App $a, &$hook_data) // Never filter own messages // TODO: find a better way to extract this - $logged_user_profile = A::baseUrl()->get() . '/profile/' . $a->user['nickname']; + $logged_user_profile = AppR::baseUrl()->get() . '/profile/' . $a->user['nickname']; if ($logged_user_profile == $hook_data['item']['author-link']) { return; } diff --git a/libertree/libertree.php b/libertree/libertree.php index f37067dd..42684fb9 100644 --- a/libertree/libertree.php +++ b/libertree/libertree.php @@ -13,7 +13,7 @@ use Friendica\Core\L10n; use Friendica\Core\Logger; use Friendica\Core\PConfig; use Friendica\Database\DBA; -use Friendica\Registry\App as A; +use Friendica\Registry\App as AppR; use Friendica\Util\Network; function libertree_install() @@ -62,7 +62,7 @@ function libertree_settings(&$a,&$s) { /* Add our stylesheet to the page so we can make our settings look nice */ - A::page()['htmlhead'] .= '' . "\r\n"; + AppR::page()['htmlhead'] .= '' . "\r\n"; /* Get the current state of our config variables */ @@ -207,7 +207,7 @@ function libertree_send(&$a,&$b) { $ltree_api_token = PConfig::get($b['uid'],'libertree','libertree_api_token'); $ltree_url = PConfig::get($b['uid'],'libertree','libertree_url'); $ltree_blog = "$ltree_url/api/v1/posts/create/?token=$ltree_api_token"; - $ltree_source = A::baseUrl()->getHostname(); + $ltree_source = AppR::baseUrl()->getHostname(); if ($b['app'] != "") $ltree_source .= " (".$b['app'].")"; diff --git a/mastodoncustomemojis/mastodoncustomemojis.php b/mastodoncustomemojis/mastodoncustomemojis.php index 9f9194db..9ca61d7e 100644 --- a/mastodoncustomemojis/mastodoncustomemojis.php +++ b/mastodoncustomemojis/mastodoncustomemojis.php @@ -15,7 +15,7 @@ use Friendica\Core\Cache\Cache; use Friendica\Core\Config; use Friendica\Core\Hook; use Friendica\Core\Protocol; -use Friendica\Registry\App as A; +use Friendica\Registry\App as AppR; use Friendica\Registry\Core; use Friendica\Util\Network; use Friendica\Util\Proxy as ProxyUtils; @@ -42,7 +42,7 @@ function mastodoncustomemojis_uninstall() function mastodoncustomemojis_css_hook(App $a) { - A::page()['htmlhead'] .= <<