diff --git a/advancedcontentfilter/advancedcontentfilter.php b/advancedcontentfilter/advancedcontentfilter.php
index af8bf9de..8aaa7cf7 100644
--- a/advancedcontentfilter/advancedcontentfilter.php
+++ b/advancedcontentfilter/advancedcontentfilter.php
@@ -45,7 +45,7 @@ use Friendica\Database\DBA;
use Friendica\Database\DBStructure;
use Friendica\Model\Item;
use Friendica\Model\Term;
-use Friendica\Module\Login;
+use Friendica\Module\Security\Login;
use Friendica\Network\HTTPException;
use Friendica\Util\DateTimeFormat;
use Psr\Http\Message\ResponseInterface;
diff --git a/fromapp/fromapp.php b/fromapp/fromapp.php
index 5c9b4454..dd48e740 100644
--- a/fromapp/fromapp.php
+++ b/fromapp/fromapp.php
@@ -10,6 +10,7 @@ use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\PConfig;
+use Friendica\DI;
function fromapp_install()
{
@@ -48,7 +49,7 @@ function fromapp_settings(&$a, &$s)
/* Add our stylesheet to the page so we can make our settings look nice */
- $a->page['htmlhead'] .= ' ' . "\r\n";
+ $a->page['htmlhead'] .= ' ' . "\r\n";
/* Get the current state of our config variable */
diff --git a/gnot/gnot.php b/gnot/gnot.php
index 2168f97a..46012e5e 100644
--- a/gnot/gnot.php
+++ b/gnot/gnot.php
@@ -12,6 +12,7 @@ use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\PConfig;
use Friendica\Core\Renderer;
+use Friendica\DI;
function gnot_install() {
@@ -69,7 +70,7 @@ function gnot_settings(&$a,&$s) {
/* Add our stylesheet to the page so we can make our settings look nice */
- $a->page['htmlhead'] .= ' ' . "\r\n";
+ $a->page['htmlhead'] .= ' ' . "\r\n";
/* Get the current state of our config variable */
diff --git a/group_text/group_text.php b/group_text/group_text.php
index 47768df2..6d14b6f5 100644
--- a/group_text/group_text.php
+++ b/group_text/group_text.php
@@ -9,6 +9,7 @@ use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\PConfig;
+use Friendica\DI;
function group_text_install() {
@@ -64,7 +65,7 @@ function group_text_settings(&$a,&$s) {
/* Add our stylesheet to the page so we can make our settings look nice */
- $a->page['htmlhead'] .= ' ' . "\r\n";
+ $a->page['htmlhead'] .= ' ' . "\r\n";
/* Get the current state of our config variable */
diff --git a/ijpost/ijpost.php b/ijpost/ijpost.php
index 020dd221..1ba936a2 100644
--- a/ijpost/ijpost.php
+++ b/ijpost/ijpost.php
@@ -13,6 +13,7 @@ use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\PConfig;
+use Friendica\DI;
use Friendica\Util\DateTimeFormat;
use Friendica\Util\Network;
use Friendica\Util\XML;
@@ -61,7 +62,7 @@ function ijpost_settings(&$a, &$s)
/* Add our stylesheet to the page so we can make our settings look nice */
- $a->page['htmlhead'] .= ' ' . "\r\n";
+ $a->page['htmlhead'] .= ' ' . "\r\n";
/* Get the current state of our config variables */
diff --git a/impressum/impressum.php b/impressum/impressum.php
index b943fd9f..0bc4d6e3 100644
--- a/impressum/impressum.php
+++ b/impressum/impressum.php
@@ -47,7 +47,7 @@ function impressum_footer($a, &$b) {
$text = ProxyUtils::proxifyHtml(BBCode::convert(Config::get('impressum','footer_text')));
if (! $text == '') {
- $a->page['htmlhead'] .= ' ';
+ $a->page['htmlhead'] .= ' ';
$b .= '
';
$b .= '';
}
diff --git a/infiniteimprobabilitydrive/infiniteimprobabilitydrive.php b/infiniteimprobabilitydrive/infiniteimprobabilitydrive.php
index a71fe651..0450a7c7 100644
--- a/infiniteimprobabilitydrive/infiniteimprobabilitydrive.php
+++ b/infiniteimprobabilitydrive/infiniteimprobabilitydrive.php
@@ -7,6 +7,7 @@
*/
use Friendica\Core\Hook;
use Friendica\Core\L10n;
+use Friendica\DI;
function infiniteimprobabilitydrive_install()
{
@@ -32,13 +33,13 @@ function infiniteimprobabilitydrive_module()
function infiniteimprobabilitydrive_content(&$a)
{
- $baseurl = $a->getBaseURL() . '/addon/infiniteimprobabilitydrive';
+ $baseurl = DI::baseUrl()->get() . '/addon/infiniteimprobabilitydrive';
$o = '';
- $a->page['htmlhead'] .= ' ';
+ $a->page['htmlhead'] .= ' ';
- $baseurl = $a->getBaseURL();
+ $baseurl = DI::baseUrl()->get();
$o .= <<< EOT
diff --git a/irc/irc.php b/irc/irc.php
index d02b2cbd..d7eaed62 100644
--- a/irc/irc.php
+++ b/irc/irc.php
@@ -12,6 +12,7 @@ use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\Core\Renderer;
+use Friendica\DI;
function irc_install() {
Hook::register('app_menu', 'addon/irc/irc.php', 'irc_app_menu');
@@ -80,7 +81,7 @@ function irc_module() {
function irc_content(&$a) {
- $baseurl = $a->getBaseURL() . '/addon/irc';
+ $baseurl = DI::baseUrl()->get() . '/addon/irc';
$o = '';
/* set the list of popular channels */
@@ -99,7 +100,7 @@ function irc_content(&$a) {
$a->page['aside'] .= '';
diff --git a/krynn/krynn.php b/krynn/krynn.php
index 8f92daf7..fe5c1975 100644
--- a/krynn/krynn.php
+++ b/krynn/krynn.php
@@ -13,6 +13,7 @@ use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\PConfig;
+use Friendica\DI;
function krynn_install() {
@@ -142,7 +143,7 @@ function krynn_settings(&$a,&$s) {
/* Add our stylesheet to the page so we can make our settings look nice */
- $a->page['htmlhead'] .= ' ' . "\r\n";
+ $a->page['htmlhead'] .= ' ' . "\r\n";
/* Get the current state of our config variable */
diff --git a/libertree/libertree.php b/libertree/libertree.php
index 034833e8..11036d5c 100644
--- a/libertree/libertree.php
+++ b/libertree/libertree.php
@@ -13,6 +13,7 @@ use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\PConfig;
use Friendica\Database\DBA;
+use Friendica\DI;
use Friendica\Util\Network;
function libertree_install()
@@ -61,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";
+ $a->page['htmlhead'] .= ' ' . "\r\n";
/* Get the current state of our config variables */
@@ -206,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->getHostName();
+ $ltree_source = DI::baseUrl()->getHostname();
if ($b['app'] != "")
$ltree_source .= " (".$b['app'].")";
diff --git a/ljpost/ljpost.php b/ljpost/ljpost.php
index 8bc33fc7..6d347b27 100644
--- a/ljpost/ljpost.php
+++ b/ljpost/ljpost.php
@@ -13,6 +13,7 @@ use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\PConfig;
+use Friendica\DI;
use Friendica\Util\DateTimeFormat;
use Friendica\Util\Network;
use Friendica\Util\XML;
@@ -61,7 +62,7 @@ function ljpost_settings(&$a,&$s) {
/* Add our stylesheet to the page so we can make our settings look nice */
- $a->page['htmlhead'] .= ' ' . "\r\n";
+ $a->page['htmlhead'] .= ' ' . "\r\n";
/* Get the current state of our config variables */
diff --git a/mahjongg/mahjongg.php b/mahjongg/mahjongg.php
index d9772037..502c92d9 100644
--- a/mahjongg/mahjongg.php
+++ b/mahjongg/mahjongg.php
@@ -1,42 +1,40 @@
-Mahjongg ';
-}
-
-
-function mahjongg_module() {}
-
-function mahjongg_content(&$a) {
-
-$baseurl = $a->getBaseURL() . '/addon/mahjongg';
-
-$o .= <<< EOT
-
-
-
-
-Simply locate the matching tiles and find a way to clear them from the board as quickly as possible.
-A timer at the top of the screen keeps track of how you are doing.
-
-EOT;
-
-return $o;
-}
+Mahjongg ';
+}
+
+
+function mahjongg_module() {}
+
+function mahjongg_content(&$a) {
+
+$o .= <<< EOT
+
+
+
+
+Simply locate the matching tiles and find a way to clear them from the board as quickly as possible.
+A timer at the top of the screen keeps track of how you are doing.
+
+EOT;
+
+return $o;
+}
diff --git a/mailstream/mailstream.php b/mailstream/mailstream.php
index 02e6dcb6..1afde867 100644
--- a/mailstream/mailstream.php
+++ b/mailstream/mailstream.php
@@ -95,7 +95,7 @@ function mailstream_addon_admin_post ($a) {
function mailstream_generate_id($a, $uri) {
// http://www.jwz.org/doc/mid.html
- $host = $a->getHostName();
+ $host = DI::baseUrl()->getHostname();
$resource = hash('md5', $uri);
$message_id = "<" . $resource . "@" . $host . ">";
Logger::debug('mailstream: Generated message ID ' . $message_id . ' for URI ' . $uri);
diff --git a/namethingy/namethingy.php b/namethingy/namethingy.php
index cb330981..7e314e89 100644
--- a/namethingy/namethingy.php
+++ b/namethingy/namethingy.php
@@ -8,6 +8,7 @@
* Status: Unsupported
*/
use Friendica\Core\Hook;
+use Friendica\DI;
function namethingy_install() {
Hook::register('app_menu', 'addon/namethingy/namethingy.php', 'namethingy_app_menu');
@@ -27,7 +28,7 @@ function namethingy_module() {}
function namethingy_content(&$a) {
-$baseurl = $a->getBaseURL() . '/addon/namethingy';
+$baseurl = DI::baseUrl()->get() . '/addon/namethingy';
$o .= <<< EOT
diff --git a/newmemberwidget/newmemberwidget.php b/newmemberwidget/newmemberwidget.php
index c8d1ccf9..1b49a179 100644
--- a/newmemberwidget/newmemberwidget.php
+++ b/newmemberwidget/newmemberwidget.php
@@ -12,6 +12,7 @@ use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
+use Friendica\DI;
use Friendica\Util\Strings;
function newmemberwidget_install()
@@ -40,7 +41,7 @@ function newmemberwidget_network_mod_init ($a, $b)
}
if (Config::get('newmemberwidget','linklocalsupport', false)) {
- $t .= ''.L10n::t('Local Support Forum').' '.EOL;
+ $t .= ''.L10n::t('Local Support Forum').' '.EOL;
}
$ft = Config::get('newmemberwidget','freetext', '');
diff --git a/notimeline/notimeline.php b/notimeline/notimeline.php
index d8d6b2ac..da9ec693 100644
--- a/notimeline/notimeline.php
+++ b/notimeline/notimeline.php
@@ -10,6 +10,7 @@
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
+use Friendica\DI;
function notimeline_install()
{
@@ -41,7 +42,7 @@ function notimeline_settings(&$a, &$s)
/* Add our stylesheet to the page so we can make our settings look nice */
- $a->page['htmlhead'] .= ' ' . "\r\n";
+ $a->page['htmlhead'] .= ' ' . "\r\n";
/* Get the current state of our config variable */
diff --git a/nsfw/nsfw.php b/nsfw/nsfw.php
index b9240103..29b95fcb 100644
--- a/nsfw/nsfw.php
+++ b/nsfw/nsfw.php
@@ -10,6 +10,7 @@
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
+use Friendica\DI;
function nsfw_install()
{
@@ -65,7 +66,7 @@ function nsfw_addon_settings(&$a, &$s)
/* Add our stylesheet to the page so we can make our settings look nice */
- $a->page['htmlhead'] .= ' ' . "\r\n";
+ $a->page['htmlhead'] .= ' ' . "\r\n";
$enable_checked = (intval(PConfig::get(local_user(), 'nsfw', 'disable')) ? '' : ' checked="checked" ');
$words = PConfig::get(local_user(), 'nsfw', 'words');
diff --git a/numfriends/numfriends.php b/numfriends/numfriends.php
index 8bb4e747..bd4f8184 100644
--- a/numfriends/numfriends.php
+++ b/numfriends/numfriends.php
@@ -9,6 +9,7 @@ use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\PConfig;
+use Friendica\DI;
function numfriends_install() {
@@ -59,7 +60,7 @@ function numfriends_settings(&$a, &$s)
/* Add our stylesheet to the page so we can make our settings look nice */
- $a->page['htmlhead'] .= ' ' . "\r\n";
+ $a->page['htmlhead'] .= ' ' . "\r\n";
/* Get the current state of our config variable */
diff --git a/piwik/piwik.php b/piwik/piwik.php
index cd41ad7b..5d3da5c0 100644
--- a/piwik/piwik.php
+++ b/piwik/piwik.php
@@ -36,6 +36,7 @@ use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
+use Friendica\DI;
use Friendica\Util\ConfigFileLoader;
use Friendica\Util\Strings;
@@ -65,7 +66,7 @@ function piwik_analytics($a,&$b) {
* associated CSS file. We just have to tell Friendica to get it
* into the page header.
*/
- $a->page['htmlhead'] .= ' ';
+ $a->page['htmlhead'] .= ' ';
/*
* Get the configuration variables from the config/addon.config.php file.
diff --git a/planets/planets.php b/planets/planets.php
index 48ba5767..59d0f49a 100644
--- a/planets/planets.php
+++ b/planets/planets.php
@@ -10,6 +10,7 @@ use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\PConfig;
+use Friendica\DI;
function planets_install() {
@@ -139,7 +140,7 @@ function planets_settings(&$a,&$s) {
/* Add our stylesheet to the page so we can make our settings look nice */
- $a->page['htmlhead'] .= ' ' . "\r\n";
+ $a->page['htmlhead'] .= ' ' . "\r\n";
/* Get the current state of our config variable */
diff --git a/public_server/public_server.php b/public_server/public_server.php
index e6817c64..7d925948 100644
--- a/public_server/public_server.php
+++ b/public_server/public_server.php
@@ -14,6 +14,7 @@ use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;
+use Friendica\DI;
use Friendica\Util\ConfigFileLoader;
use Friendica\Util\DateTimeFormat;
use Friendica\Util\Strings;
@@ -74,8 +75,8 @@ function public_server_cron($a, $b)
'to_name' => $rr['username'],
'to_email' => $rr['email'],
'source_name' => L10n::t('Administrator'),
- 'source_link' => $a->getBaseURL(),
- 'source_photo' => $a->getBaseURL() . '/images/person-80.jpg',
+ 'source_link' => DI::baseUrl()->get(),
+ 'source_photo' => DI::baseUrl()->get() . '/images/person-80.jpg',
]);
$fields = ['expire_notification_sent' => DateTimeFormat::utcNow()];
@@ -126,7 +127,7 @@ function public_server_enotify(&$a, &$b)
{
if (!empty($b['params']) && $b['params']['type'] == NOTIFY_SYSTEM
&& !empty($b['params']['system_type']) && $b['params']['system_type'] === 'public_server_expire') {
- $b['itemlink'] = $a->getBaseURL();
+ $b['itemlink'] = DI::baseUrl()->get();
$b['epreamble'] = $b['preamble'] = L10n::t('Your account on %s will expire in a few days.', Config::get('system', 'sitename'));
$b['subject'] = L10n::t('Your Friendica account is about to expire.');
$b['body'] = L10n::t("Hi %1\$s,\n\nYour account on %2\$s will expire in less than five days. You may keep your account by logging in at least once every 30 days", $b['params']['to_name'], "[url=" . Config::get('system', 'url') . "]" . Config::get('config', 'sitename') . "[/url]");
diff --git a/qcomment/qcomment.php b/qcomment/qcomment.php
index 7c5e0358..a411354c 100644
--- a/qcomment/qcomment.php
+++ b/qcomment/qcomment.php
@@ -20,6 +20,7 @@
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
+use Friendica\DI;
use Friendica\Util\XML;
function qcomment_install() {
@@ -42,7 +43,7 @@ function qcomment_addon_settings(&$a, &$s)
/* Add our stylesheet to the page so we can make our settings look nice */
- $a->page['htmlhead'] .= ' ' . "\r\n";
+ $a->page['htmlhead'] .= ' ' . "\r\n";
$words = PConfig::get(local_user(), 'qcomment', 'words', L10n::t(':-)') . "\n" . L10n::t(':-(') . "\n" . L10n::t('lol'));
diff --git a/randplace/randplace.php b/randplace/randplace.php
index ffc3237c..65eb0133 100644
--- a/randplace/randplace.php
+++ b/randplace/randplace.php
@@ -22,6 +22,7 @@ use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\PConfig;
+use Friendica\DI;
function randplace_install() {
@@ -158,7 +159,7 @@ function randplace_settings(&$a,&$s) {
/* Add our stylesheet to the page so we can make our settings look nice */
- $a->page['htmlhead'] .= ' ' . "\r\n";
+ $a->page['htmlhead'] .= ' ' . "\r\n";
/* Get the current state of our config variable */
diff --git a/remote_permissions/remote_permissions.php b/remote_permissions/remote_permissions.php
index 7d42c560..a985bf37 100644
--- a/remote_permissions/remote_permissions.php
+++ b/remote_permissions/remote_permissions.php
@@ -39,7 +39,7 @@ function remote_permissions_settings(&$a,&$o) {
/* Add our stylesheet to the page so we can make our settings look nice */
- $a->page['htmlhead'] .= ' ' . "\r\n";
+ $a->page['htmlhead'] .= ' ' . "\r\n";
/* Get the current state of our config variable */
@@ -81,7 +81,7 @@ function remote_permissions_content($a, $item_copy) {
return;
// Find out if the contact lives here
- $baseurl = $a->getBaseURL();
+ $baseurl = DI::baseUrl()->get();
$baseurl = substr($baseurl, strpos($baseurl, '://') + 3);
if(strpos($r[0]['url'], $baseurl) === false)
return;
diff --git a/showmore/showmore.php b/showmore/showmore.php
index f7bb0c50..7a446ec8 100644
--- a/showmore/showmore.php
+++ b/showmore/showmore.php
@@ -10,6 +10,7 @@
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
+use Friendica\DI;
use Friendica\Util\Strings;
function showmore_install()
@@ -34,7 +35,7 @@ function showmore_addon_settings(&$a, &$s)
/* Add our stylesheet to the page so we can make our settings look nice */
- $a->page['htmlhead'] .= ' '."\r\n";
+ $a->page['htmlhead'] .= ' '."\r\n";
$enable_checked = (intval(PConfig::get(local_user(), 'showmore', 'disable')) ? '' : ' checked="checked"');
$chars = PConfig::get(local_user(), 'showmore', 'chars', 1100);
diff --git a/smiley_pack/lang/smiley_pack_es/smiley_pack_es.php b/smiley_pack/lang/smiley_pack_es/smiley_pack_es.php
index febdd41c..892b4a70 100644
--- a/smiley_pack/lang/smiley_pack_es/smiley_pack_es.php
+++ b/smiley_pack/lang/smiley_pack_es/smiley_pack_es.php
@@ -7,6 +7,7 @@
* All smileys from sites offering them as Public Domain
*/
use Friendica\Core\Hook;
+use Friendica\DI;
function smiley_pack_es_install() {
Hook::register('smilie', 'addon/smiley_pack_es/smiley_pack_es.php', 'smiley_pack_smilies_es');
@@ -30,459 +31,459 @@ function smiley_pack_smilies_es(&$a,&$b) {
#Animal smileys.
$b['texts'][] = ':conejitoflores';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':pollito';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':abeja';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':mariquita';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':araña';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':gato';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':conejito';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':vaca';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':cangrejo';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':delfín';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':libélula';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':rana';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':hamster';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':mono';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':caballo';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':loro';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':tux';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':caracol';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':oveja';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':perro';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':elefante';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':pez';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':jirafa';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':cerdo';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Baby Smileys
$b['texts'][] = ':bebé';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':cuna';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':embarazada';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':cigüeña';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Confused Smileys
$b['texts'][] = ':confundido';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':encogehombros';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':estúpido';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':aturdidp';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Cool Smileys
$b['texts'][] = ':afro';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':guay';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Devil/Angel Smileys
$b['texts'][] = ':ángel';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':querubín';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':ángeldemonio';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':gatodemonio';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':diabólico';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':adbalancín';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':vuelvedemonio';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':santo';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':tumba';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Unpleasent smileys.
$b['texts'][] = ':retrete';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':pedoencama';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':vómito';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':pedosonrojo';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Drinks
$b['texts'][] = ':té';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':baba';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Sad smileys
$b['texts'][] = ':llorar';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':prisonero';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':suspiro';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Smoking - only one smiley in here, maybe it needs moving elsewhere?
$b['texts'][] = ':fumar';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Sport smileys
$b['texts'][] = ':baloncesto';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':bolos';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':enbici';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':dardos';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':esgrima';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':golf';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':malabares';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':comba';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':tiroconarco';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':fútbol';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':surf';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':billar';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':tenis';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':acaballo';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Love smileys
$b['texts'][] = ':tequiero';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':enamorada';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':amor';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':osoamoroso';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':camaamor';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':corazónamor';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Tired/Sleep smileys
$b['texts'][] = ':contandoovejas';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':hamaca';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':almohada';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':bostezo';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Fight/Flame/Violent smileys
$b['texts'][] = ':pistolas';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':peleamarciano';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':alfa';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':ejército';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':cabezaflecha';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':bfg';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':arquero';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':motosierra';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':ballesta';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':cruzado';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':muerto';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':martillazo';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':pistolalaser';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':metralleta';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':marine';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':sable';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':tanque';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':vikingo';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':bandas';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':ácido';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Fantasy smileys - monsters and dragons fantasy. The other type of fantasy belongs in adult smileys
$b['texts'][] = ':alien';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':bárbaro';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':dinosaurio';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':dragón';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':draco';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':fantasma';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':momia';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Food smileys
$b['texts'][] = ':mazana';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':brócoli';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':pastel';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':zanahoria';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':palomitas';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':tomate';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':plátano';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':cocinar';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':huevofrito';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Happy smileys
$b['texts'][] = ':cloud9';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':tearsofjoy';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Repsect smileys
$b['texts'][] = ':reverencia';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':bravo';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':vivaelrey';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':número1';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Laugh smileys
$b['texts'][] = ':jajaja';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':jajatv';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':meparto';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Music smileys
$b['texts'][] = ':dj';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':batería';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':elvis';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':guitarra';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':trompeta';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':violín';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Smileys that used to be in core
$b['texts'][] = ':cabezagolpe';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':barba';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':barbablanca';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':saludosurf';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':\\.../';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':\\ooo/';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':cabezamesa';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#These two are still in core, so oldcore isn't strictly right, but we don't want too many directories
$b['texts'][] = ':-d';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':-o';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
diff --git a/smiley_pack/lang/smiley_pack_fr/smiley_pack_fr.php b/smiley_pack/lang/smiley_pack_fr/smiley_pack_fr.php
index 5f10a5b1..7472bd1c 100644
--- a/smiley_pack/lang/smiley_pack_fr/smiley_pack_fr.php
+++ b/smiley_pack/lang/smiley_pack_fr/smiley_pack_fr.php
@@ -9,6 +9,7 @@
*
*/
use Friendica\Core\Hook;
+use Friendica\DI;
function smiley_pack_fr_install() {
Hook::register('smilie', 'addon/smiley_pack_fr/smiley_pack_fr.php', 'smiley_pack_fr_smilies');
@@ -32,378 +33,378 @@ function smiley_pack_fr_smilies(&$a,&$b) {
#Animal smileys.
$b['texts'][] = ':fleurslapin';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':poussin';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':bourdon';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':coccinelle';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':araignée';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':chat';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':lapin';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':poussin';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':vache';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':crabe';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':dauphin';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':libellule';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':grenouille';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':singe';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':cheval';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':perroquet';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':escargot';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':mouton';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':chien';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':éléphant';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':poisson';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':girafe';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':cochon';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Baby Smileys
$b['texts'][] = ':bébé';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':litbébé';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':enceinte';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':cigogne';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Confused Smileys
$b['texts'][] = ':paumé';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':hausseépaules';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':stupide';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':hébété';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Cool Smileys
$b['texts'][] = ':afro';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Devil/Angel Smileys
$b['texts'][] = ':ange';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':chérubin';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':démonange';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':diablechat';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':démoniaque';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':bascule';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':possédé';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':tombe';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Unpleasent smileys.
$b['texts'][] = ':toilettes';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':pèteaulit';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':pet';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Drinks
$b['texts'][] = ':thé';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':salive';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Sad smileys
$b['texts'][] = ':pleure';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':prisonnier';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':soupir';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Smoking - only one smiley in here, maybe it needs moving elsewhere?
$b['texts'][] = ':fume';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Sport smileys
$b['texts'][] = ':basket';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':vélo';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':fléchettes';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':escrime';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':jonglage';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':sautàlacorde';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':arc';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':surf';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':billard';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':équitation';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Love smileys
$b['texts'][] = ':jetaime';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':amoureux';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':oursamour';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':amourlit';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':coeur';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Tired/Sleep smileys
$b['texts'][] = ':comptemoutons';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':hamac';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':oreiller';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':bâille';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Fight/Flame/Violent smileys
$b['texts'][] = ':2pistolets';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':combatalien';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':armée';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':flèche';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':bfg';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':archer';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':tronçonneuse';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':arbalète';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':croisé';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':mort';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':marteau';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':pistoletlaser';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':mitrailleuse';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':acide';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Fantasy smileys - monsters and dragons fantasy. The other type of fantasy belongs in adult smileys
$b['texts'][] = ':monstrealien';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':barbare';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':dinosaure';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':petitdragon';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':fantôme';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':momie';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Food smileys
$b['texts'][] = ':pomme';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':brocoli';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':gâteau';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':carotte';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = '~popcorn';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':tomate';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':banane';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':cuisine';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':oeufauplat';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Happy smileys
$b['texts'][] = ':nuage';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':larmesdejoie';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Repsect smileys
$b['texts'][] = ':courbette';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':bravo';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':viveleroi';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':numéro1';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Laugh smileys
#Music smileys
$b['texts'][] = ':batterie';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':guitare';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':trompette';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':violon';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Smileys that used to be in core
$b['texts'][] = ':cognetête';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':barbu';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':barbeblanche';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':tête';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
}
diff --git a/smiley_pack/smiley_pack.php b/smiley_pack/smiley_pack.php
index 607f3557..a80ab717 100644
--- a/smiley_pack/smiley_pack.php
+++ b/smiley_pack/smiley_pack.php
@@ -8,6 +8,7 @@
*/
use Friendica\Core\Hook;
+use Friendica\DI;
function smiley_pack_install() {
Hook::register('smilie', 'addon/smiley_pack/smiley_pack.php', 'smiley_pack_smilies');
@@ -31,466 +32,466 @@ function smiley_pack_smilies(&$a,&$b) {
#Animal smileys.
$b['texts'][] = ':bunnyflowers';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':chick';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':bumblebee';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':ladybird';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':bigspider';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':cat';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':bunny';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':cow';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':crab';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':dolphin';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':dragonfly';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':frog';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':hamster';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':monkey';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':horse';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':parrot';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':tux';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':snail';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':sheep';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':dog';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':elephant';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':fish';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':giraffe';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':pig';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Baby Smileys
$b['texts'][] = ':baby';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':babycot';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':pregnant';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':stork';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Confused Smileys
$b['texts'][] = ':confused';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':shrug';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':stupid';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':dazed';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Cool Smileys
$b['texts'][] = ':affro';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Devil/Angel Smileys
$b['texts'][] = ':angel';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':cherub';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':devilangel';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':catdevil';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':devillish';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':daseesaw';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':turnevil';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':saint';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':graveside';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Unpleasent smileys.
$b['texts'][] = ':toilet';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':fartinbed';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':fartblush';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Drinks
$b['texts'][] = ':tea';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':drool';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Sad smileys
$b['texts'][] = ':crying';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':prisoner';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':sigh';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Smoking - only one smiley in here, maybe it needs moving elsewhere?
$b['texts'][] = ':smoking';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Sport smileys
$b['texts'][] = ':basketball';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = '~bowling';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':cycling';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':darts';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':fencing';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':juggling';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':skipping';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':archery';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':surfing';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':snooker';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':horseriding';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Love smileys
$b['texts'][] = ':iloveyou';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':inlove';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = '~love';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':lovebear';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':lovebed';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':loveheart';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Tired/Sleep smileys
$b['texts'][] = ':countsheep';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':hammock';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':pillow';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':yawn';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Fight/Flame/Violent smileys
$b['texts'][] = ':2guns';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':alienfight';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':army';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':arrowhead';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':bfg';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':bowman';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':chainsaw';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':crossbow';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':crusader';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':dead';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':hammersplat';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':lasergun';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':machinegun';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':acid';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Fantasy smileys - monsters and dragons fantasy. The other type of fantasy belongs in adult smileys
$b['texts'][] = ':alienmonster';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':barbarian';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':dinosaur';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':dragon';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':draco';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':ghost';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':mummy';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Food smileys
$b['texts'][] = ':apple';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':broccoli';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':cake';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':carrot';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':popcorn';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':tomato';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':banana';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':cooking';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':fryegg';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':birthdaycake';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Happy smileys
$b['texts'][] = ':cloud9';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':tearsofjoy';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Repsect smileys
$b['texts'][] = ':bow';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':bravo';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':hailking';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':number1';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Laugh smileys
$b['texts'][] = ':hahaha';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':loltv';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':rofl';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Music smileys
$b['texts'][] = ':drums';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':guitar';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':trumpet';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#Smileys that used to be in core
$b['texts'][] = ':headbang';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':beard';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':whitebeard';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':shaka';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':\\.../';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':\\ooo/';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':headdesk';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
#These two are still in core, so oldcore isn't strictly right, but we don't want too many directories
$b['texts'][] = ':-d';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':-o';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
# Regex killers - stick these at the bottom so they appear at the end of the English and
# at the start of $OtherLanguage.
$b['texts'][] = ':cool';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':vomit';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':golf';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':football';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':tennis';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':alpha';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':marine';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':sabre';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':tank';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':viking';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':gangs';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':dj';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':elvis';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':violin';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
}
diff --git a/smilies_adult/smilies_adult.php b/smilies_adult/smilies_adult.php
index c0095923..84bb24cf 100644
--- a/smilies_adult/smilies_adult.php
+++ b/smilies_adult/smilies_adult.php
@@ -9,6 +9,7 @@
*
*/
use Friendica\Core\Hook;
+use Friendica\DI;
function smilies_adult_install() {
Hook::register('smilie', 'addon/smilies_adult/smilies_adult.php', 'smilies_adult_smilies');
@@ -23,21 +24,21 @@ function smilies_adult_uninstall() {
function smilies_adult_smilies(&$a,&$b) {
$b['texts'][] = '(o)(o)';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = '(.)(.)';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':bong';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':sperm';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':drunk';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
$b['texts'][] = ':finger';
- $b['icons'][] = ' ';
+ $b['icons'][] = ' ';
}
\ No newline at end of file
diff --git a/sniper/sniper.php b/sniper/sniper.php
index 72300838..97d26b7b 100644
--- a/sniper/sniper.php
+++ b/sniper/sniper.php
@@ -10,6 +10,7 @@
* Author: Mike Macgirvin
*/
use Friendica\Core\Hook;
+use Friendica\DI;
function sniper_install() {
Hook::register('app_menu', 'addon/sniper/sniper.php', 'sniper_app_menu');
@@ -29,7 +30,7 @@ function sniper_module() {}
function sniper_content(&$a) {
-$baseurl = $a->getBaseURL() . '/addon/sniper';
+$baseurl = DI::baseUrl()->get() . '/addon/sniper';
$o .= <<< EOT
diff --git a/startpage/startpage.php b/startpage/startpage.php
index 0971818f..c2ade1d3 100644
--- a/startpage/startpage.php
+++ b/startpage/startpage.php
@@ -10,6 +10,7 @@ use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\Core\System;
+use Friendica\DI;
function startpage_install() {
Hook::register('home_init', 'addon/startpage/startpage.php', 'startpage_home_init');
@@ -32,7 +33,7 @@ function startpage_home_init($a, $b)
$page = PConfig::get(local_user(), 'startpage', 'startpage');
if (strlen($page)) {
- $a->internalRedirect($page);
+ DI::baseUrl()->redirect($page);
}
return;
}
@@ -71,7 +72,7 @@ function startpage_settings(&$a, &$s)
/* Add our stylesheet to the page so we can make our settings look nice */
- $a->page['htmlhead'] .= ' ' . "\r\n";
+ $a->page['htmlhead'] .= ' ' . "\r\n";
/* Get the current state of our config variable */
diff --git a/superblock/superblock.php b/superblock/superblock.php
index da4260d0..99f4a4dc 100644
--- a/superblock/superblock.php
+++ b/superblock/superblock.php
@@ -9,6 +9,7 @@
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
+use Friendica\DI;
use Friendica\Util\Strings;
function superblock_install()
@@ -37,7 +38,7 @@ function superblock_addon_settings(&$a, &$s)
/* Add our stylesheet to the page so we can make our settings look nice */
- $a->page['htmlhead'] .= ' ' . "\r\n";
+ $a->page['htmlhead'] .= ' ' . "\r\n";
$words = PConfig::get(local_user(), 'system', 'blocked');
if (!$words) {
diff --git a/testdrive/testdrive.php b/testdrive/testdrive.php
index f29dea19..5f5dceaa 100644
--- a/testdrive/testdrive.php
+++ b/testdrive/testdrive.php
@@ -11,6 +11,7 @@ use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Database\DBA;
+use Friendica\DI;
use Friendica\Model\User;
use Friendica\Util\ConfigFileLoader;
use Friendica\Util\DateTimeFormat;
@@ -75,8 +76,8 @@ function testdrive_cron($a,$b) {
'to_name' => $rr['username'],
'to_email' => $rr['email'],
'source_name' => L10n::t('Administrator'),
- 'source_link' => $a->getBaseURL(),
- 'source_photo' => $a->getBaseURL() . '/images/person-80.jpg',
+ 'source_link' => DI::baseUrl()->get(),
+ 'source_photo' => DI::baseUrl()->get() . '/images/person-80.jpg',
]);
q("update user set expire_notification_sent = '%s' where uid = %d",
@@ -98,7 +99,7 @@ function testdrive_cron($a,$b) {
function testdrive_enotify(&$a, &$b) {
if (!empty($b['params']) && $b['params']['type'] == NOTIFY_SYSTEM
&& !empty($b['params']['system_type']) && $b['params']['system_type'] === 'testdrive_expire') {
- $b['itemlink'] = $a->getBaseURL();
+ $b['itemlink'] = DI::baseUrl()->get();
$b['epreamble'] = $b['preamble'] = L10n::t('Your account on %s will expire in a few days.', Config::get('system', 'sitename'));
$b['subject'] = L10n::t('Your Friendica test account is about to expire.');
$b['body'] = L10n::t("Hi %1\$s,\n\nYour test account on %2\$s will expire in less than five days. We hope you enjoyed this test drive and use this opportunity to find a permanent Friendica website for your integrated social communications. A list of public sites is available at %s/siteinfo - and for more information on setting up your own Friendica server please see the Friendica project website at https://friendi.ca.", $b['params']['to_name'], "[url=".Config::get('system', 'url')."]".Config::get('config', 'sitename')."[/url]", get_server());
diff --git a/viewsrc/viewsrc.php b/viewsrc/viewsrc.php
index a890be2a..d50b4234 100644
--- a/viewsrc/viewsrc.php
+++ b/viewsrc/viewsrc.php
@@ -8,6 +8,7 @@
*/
use Friendica\Core\Hook;
use Friendica\Core\L10n;
+use Friendica\DI;
use Friendica\Model\Item;
use Friendica\Database\DBA;
@@ -52,7 +53,7 @@ function viewsrc_item_photo_menu(&$a, &$b)
$item_id = $b['item']['id'];
}
- $b['menu'] = array_merge([L10n::t('View Source') => $a->getBaseURL() . '/viewsrc/'. $item_id], $b['menu']);
+ $b['menu'] = array_merge([L10n::t('View Source') => DI::baseUrl()->get() . '/viewsrc/'. $item_id], $b['menu']);
//if((! local_user()) || (local_user() != $b['item']['uid']))
// return;
diff --git a/widgets/widget_friendheader.php b/widgets/widget_friendheader.php
index 7df1ff7c..4d852e27 100644
--- a/widgets/widget_friendheader.php
+++ b/widgets/widget_friendheader.php
@@ -2,6 +2,7 @@
use Friendica\Content\Text\HTML;
use Friendica\Core\L10n;
+use Friendica\DI;
function friendheader_widget_name()
{
@@ -47,7 +48,7 @@ function friendheader_widget_content(&$a, $conf)
";
$o .= _abs_url(HTML::contactBlock());
- $o .= "profile['nickname']."' target=new>". L10n::t('Get added to this list!') ." ";
+ $o .= "profile['nickname']."' target=new>". L10n::t('Get added to this list!') ." ";
return $o;
}
diff --git a/widgets/widget_friends.php b/widgets/widget_friends.php
index f661a4f0..37fc30dc 100644
--- a/widgets/widget_friends.php
+++ b/widgets/widget_friends.php
@@ -2,6 +2,7 @@
use Friendica\Content\Text\HTML;
use Friendica\Core\L10n;
+use Friendica\DI;
function friends_widget_name()
{
@@ -49,6 +50,6 @@ function friends_widget_content(&$a, $conf)
";
$o .= _abs_url(HTML::contactBlock());
- $o .= "profile['nickname']."'>". L10n::t('Connect on Friendica!') ." ";
+ $o .= "profile['nickname']."'>". L10n::t('Connect on Friendica!') ." ";
return $o;
}
diff --git a/widgets/widgets.php b/widgets/widgets.php
index c22c3f68..dd623afd 100644
--- a/widgets/widgets.php
+++ b/widgets/widgets.php
@@ -127,7 +127,7 @@ function widgets_content(&$a) {
if (isset($_GET['p']) && local_user()==$conf['uid'] ) {
$o .= "";
$o .= "Preview Widget ";
- $o .= ''. L10n::t("Addon Settings") .' ';
+ $o .= ''. L10n::t("Addon Settings") .' ';
$o .= "".call_user_func($a->argv[1].'_widget_name')." ";
$o .= call_user_func($a->argv[1].'_widget_help');
@@ -143,10 +143,10 @@ function widgets_content(&$a) {
$script = file_get_contents(dirname(__file__)."/widgets.js");
$o .= Renderer::replaceMacros($script, [
- '$entrypoint' => $a->getBaseURL()."/widgets/".$a->argv[1]."/cb/",
+ '$entrypoint' => DI::baseUrl()->get()."/widgets/".$a->argv[1]."/cb/",
'$key' => $conf['key'],
'$widget_id' => 'f9a_'.$a->argv[1]."_"._randomAlphaNum(6),
- '$loader' => $a->getBaseURL()."/images/rotator.gif",
+ '$loader' => DI::baseUrl()->get()."/images/rotator.gif",
'$args' => (isset($_GET['a'])?$_GET['a']:''),
'$width' => $widget_size[0],
'$height' => $widget_size[1],
@@ -164,7 +164,7 @@ function widgets_content(&$a) {
Copy and paste this code
"
- .htmlspecialchars('')
."
";
diff --git a/windowsphonepush/windowsphonepush.php b/windowsphonepush/windowsphonepush.php
index 8d35e787..4283ab16 100644
--- a/windowsphonepush/windowsphonepush.php
+++ b/windowsphonepush/windowsphonepush.php
@@ -107,7 +107,7 @@ function windowsphonepush_settings(&$a, &$s)
}
/* Add our stylesheet to the page so we can make our settings look nice */
- $a->page['htmlhead'] .= ' ' . "\r\n";
+ $a->page['htmlhead'] .= ' ' . "\r\n";
/* Get the current state of our config variables */
$enabled = PConfig::get(local_user(), 'windowsphonepush', 'enable');
diff --git a/wppost/wppost.php b/wppost/wppost.php
index bcdedffe..cd3e1cfc 100644
--- a/wppost/wppost.php
+++ b/wppost/wppost.php
@@ -13,6 +13,7 @@ use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\PConfig;
use Friendica\Database\DBA;
+use Friendica\DI;
use Friendica\Util\Network;
use Friendica\Util\Strings;
use Friendica\Util\XML;
@@ -69,7 +70,7 @@ function wppost_settings(&$a,&$s) {
/* Add our stylesheet to the page so we can make our settings look nice */
- $a->page['htmlhead'] .= ' ' . "\r\n";
+ $a->page['htmlhead'] .= ' ' . "\r\n";
/* Get the current state of our config variables */