From 03ebfb6b42f326a0fe8ebd5fb064a3d78abd4fc0 Mon Sep 17 00:00:00 2001 From: nupplaPhil Date: Sat, 11 Jan 2020 22:17:36 +0100 Subject: [PATCH] Rename Alias "A" to "AppR" --- blockem/blockem.php | 8 +++--- blogger/blogger.php | 4 +-- buffer/buffer.php | 12 ++++---- catavatar/catavatar.php | 8 +++--- cookienotice/cookienotice.php | 6 ++-- curweather/curweather.php | 6 ++-- diaspora/diaspora.php | 6 ++-- dwpost/dwpost.php | 4 +-- forumdirectory/forumdirectory.php | 6 ++-- geonames/geonames.php | 4 +-- highlightjs/highlightjs.php | 8 +++--- ifttt/ifttt.php | 4 +-- irc/irc.php | 2 +- jappixmini/jappixmini.php | 28 +++++++++---------- js_upload/js_upload.php | 6 ++-- langfilter/langfilter.php | 4 +-- libertree/libertree.php | 6 ++-- mastodoncustomemojis/mastodoncustomemojis.php | 4 +-- mathjax/mathjax.php | 6 ++-- notifyall/notifyall.php | 8 +++--- pageheader/pageheader.php | 6 ++-- public_server/public_server.php | 8 +++--- pumpio/pumpio.php | 18 ++++++------ securemail/securemail.php | 4 +-- statusnet/statusnet.php | 16 +++++------ testdrive/testdrive.php | 8 +++--- tumblr/tumblr.php | 10 +++---- twitter/twitter.php | 16 +++++------ windowsphonepush/windowsphonepush.php | 4 +-- xmpp/xmpp.php | 16 +++++------ 30 files changed, 123 insertions(+), 123 deletions(-) diff --git a/blockem/blockem.php b/blockem/blockem.php index 5211aa70..0124d261 100644 --- a/blockem/blockem.php +++ b/blockem/blockem.php @@ -11,7 +11,7 @@ use Friendica\App; use Friendica\Core\Hook; use Friendica\Core\L10n; use Friendica\Core\PConfig; -use Friendica\Registry\App as A; +use Friendica\Registry\App as AppR; use Friendica\Util\Strings; function blockem_install() @@ -44,7 +44,7 @@ function blockem_addon_settings (App $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"; $words = PConfig::get(local_user(), 'blockem', 'words'); @@ -149,7 +149,7 @@ function blockem_prepare_body_content_filter(App $a, array &$hook_data) function blockem_display_item(App $a, array &$b = null) { if (!empty($b['output']['body']) && strstr($b['output']['body'], 'id="blockem-wrap-')) { - $b['output']['thumb'] = A::baseUrl()->get() . "/images/person-80.jpg"; + $b['output']['thumb'] = AppR::baseUrl()->get() . "/images/person-80.jpg"; } } @@ -165,7 +165,7 @@ function blockem_conversation_start(App $a, array &$b) $a->data['blockem'] = explode(',', $words); } - A::page()['htmlhead'] .= <<< EOT + AppR::page()['htmlhead'] .= <<< EOT ' . "\r\n"; - A::page()['htmlhead'] .= '' . "\r\n"; + AppR::page()['htmlhead'] .= '' . "\r\n"; + AppR::page()['htmlhead'] .= '' . "\r\n"; - A::page()['htmlhead'] .= '' . "\r\n"; + AppR::page()['htmlhead'] .= '' . "\r\n"; } $s .= ''; @@ -387,7 +387,7 @@ function jappixmini_settings(App $a, &$s) $s .= ''; - A::page()['htmlhead'] .= "' . "\r\n"; - A::page()['htmlhead'] .= '' . "\r\n"; + AppR::page()['htmlhead'] .= '' . "\r\n"; + AppR::page()['htmlhead'] .= '' . "\r\n"; - A::page()['htmlhead'] .= '' . "\r\n"; + AppR::page()['htmlhead'] .= '' . "\r\n"; $username = PConfig::get(local_user(), 'jappixmini', 'username'); $username = str_replace("'", "\\'", $username); @@ -515,7 +515,7 @@ function jappixmini_script(App $a) // set proxy if necessary $use_proxy = Config::get('jappixmini', 'bosh_proxy'); if ($use_proxy) { - $proxy = A::baseUrl()->get() . '/addon/jappixmini/proxy.php'; + $proxy = AppR::baseUrl()->get() . '/addon/jappixmini/proxy.php'; } else { $proxy = ""; } @@ -557,7 +557,7 @@ function jappixmini_script(App $a) } // add javascript to start Jappix Mini - A::page()['htmlhead'] .= "' . "\r\n"; + AppR::page()['htmlhead'] .= '' . "\r\n"; // for jappixmini_addon_set_client_secret - A::page()['htmlhead'] .= '' . "\r\n"; + AppR::page()['htmlhead'] .= '' . "\r\n"; // save hash of password $o = str_replace("
get() . '/addon/jappixmini/jappix/AUTHORS">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

'; + $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'] .= <<