https://reisub.nsupdate.info/git
/
friendica-addons.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
99db345
)
Remove deprecated App::getHostName() - process methods to DI::baseUrl()->getHostName()
author
nupplaPhil
<admin@philipp.info>
Sun, 15 Dec 2019 23:47:24 +0000
(
00:47
+0100)
committer
nupplaPhil
<admin@philipp.info>
Fri, 27 Dec 2019 20:55:16 +0000
(21:55 +0100)
diaspora/diaspora.php
patch
|
blob
|
history
notifyall/notifyall.php
patch
|
blob
|
history
pumpio/pumpio.php
patch
|
blob
|
history
securemail/securemail.php
patch
|
blob
|
history
statusnet/statusnet.php
patch
|
blob
|
history
twitter/twitter.php
patch
|
blob
|
history
xmpp/xmpp.php
patch
|
blob
|
history
diff --git
a/diaspora/diaspora.php
b/diaspora/diaspora.php
index
0d847b1
..
eb7e521
100644
(file)
--- a/
diaspora/diaspora.php
+++ b/
diaspora/diaspora.php
@@
-18,6
+18,7
@@
use Friendica\Core\PConfig;
use Friendica\Core\Protocol;
use Friendica\Database\DBA;
use Friendica\Core\Worker;
use Friendica\Core\Protocol;
use Friendica\Database\DBA;
use Friendica\Core\Worker;
+use Friendica\DI;
function diaspora_install()
{
function diaspora_install()
{
@@
-231,7
+232,7
@@
function diaspora_post_local(App $a, array &$b)
function diaspora_send(App $a, array &$b)
{
function diaspora_send(App $a, array &$b)
{
- $hostname =
$a->getHostN
ame();
+ $hostname =
DI::baseUrl()->getHostn
ame();
Logger::log('diaspora_send: invoked');
Logger::log('diaspora_send: invoked');
diff --git
a/notifyall/notifyall.php
b/notifyall/notifyall.php
index
8205e20
..
c470cb4
100644
(file)
--- a/
notifyall/notifyall.php
+++ b/
notifyall/notifyall.php
@@
-57,7
+57,7
@@
function notifyall_post(App $a)
}
if (!Config::get('config', 'sender_email')) {
}
if (!Config::get('config', 'sender_email')) {
- $sender_email = 'noreply@' .
$a->getHostN
ame();
+ $sender_email = 'noreply@' .
DI::baseUrl()->getHostn
ame();
} else {
$sender_email = Config::get('config', 'sender_email');
}
} else {
$sender_email = Config::get('config', 'sender_email');
}
diff --git
a/pumpio/pumpio.php
b/pumpio/pumpio.php
index
e8b740c
..
18ab5f4
100644
(file)
--- a/
pumpio/pumpio.php
+++ b/
pumpio/pumpio.php
@@
-17,6
+17,7
@@
use Friendica\Core\PConfig;
use Friendica\Core\Protocol;
use Friendica\Core\Worker;
use Friendica\Database\DBA;
use Friendica\Core\Protocol;
use Friendica\Core\Worker;
use Friendica\Database\DBA;
+use Friendica\DI;
use Friendica\Model\Contact;
use Friendica\Model\Group;
use Friendica\Model\Item;
use Friendica\Model\Contact;
use Friendica\Model\Group;
use Friendica\Model\Item;
@@
-105,7
+106,7
@@
function pumpio_registerclient(App $a, $host)
$application_name = Config::get('pumpio', 'application_name');
if ($application_name == "") {
$application_name = Config::get('pumpio', 'application_name');
if ($application_name == "") {
- $application_name =
$a->getHostN
ame();
+ $application_name =
DI::baseUrl()->getHostn
ame();
}
$adminlist = explode(",", str_replace(" ", "", Config::get('config', 'admin_email')));
}
$adminlist = explode(",", str_replace(" ", "", Config::get('config', 'admin_email')));
@@
-772,7
+773,7
@@
function pumpio_fetchtimeline(App $a, $uid)
$application_name = Config::get('pumpio', 'application_name');
}
if ($application_name == "") {
$application_name = Config::get('pumpio', 'application_name');
}
if ($application_name == "") {
- $application_name =
$a->getHostN
ame();
+ $application_name =
DI::baseUrl()->getHostn
ame();
}
$first_time = ($lastdate == "");
}
$first_time = ($lastdate == "");
diff --git
a/securemail/securemail.php
b/securemail/securemail.php
index
5662714
..
029e040
100644
(file)
--- a/
securemail/securemail.php
+++ b/
securemail/securemail.php
@@
-13,6
+13,7
@@
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\PConfig;
use Friendica\Core\Renderer;
use Friendica\Core\Logger;
use Friendica\Core\PConfig;
use Friendica\Core\Renderer;
+use Friendica\DI;
use Friendica\Util\Emailer;
require_once __DIR__ . '/vendor/autoload.php';
use Friendica\Util\Emailer;
require_once __DIR__ . '/vendor/autoload.php';
@@
-92,7
+93,7
@@
function securemail_settings_post(App &$a, array &$b)
if ($_POST['securemail-submit'] == L10n::t('Save and send test')) {
$sitename = Config::get('config', 'sitename');
if ($_POST['securemail-submit'] == L10n::t('Save and send test')) {
$sitename = Config::get('config', 'sitename');
- $hostname =
$a->getHostN
ame();
+ $hostname =
DI::baseUrl()->getHostn
ame();
if (strpos($hostname, ':')) {
$hostname = substr($hostname, 0, strpos($hostname, ':'));
}
if (strpos($hostname, ':')) {
$hostname = substr($hostname, 0, strpos($hostname, ':'));
}
diff --git
a/statusnet/statusnet.php
b/statusnet/statusnet.php
index
baba236
..
38b9f8a
100644
(file)
--- a/
statusnet/statusnet.php
+++ b/
statusnet/statusnet.php
@@
-838,7
+838,7
@@
function statusnet_fetchtimeline(App $a, $uid)
$application_name = Config::get('statusnet', 'application_name');
}
if ($application_name == "") {
$application_name = Config::get('statusnet', 'application_name');
}
if ($application_name == "") {
- $application_name =
$a->getHostN
ame();
+ $application_name =
DI::baseUrl()->getHostn
ame();
}
$connection = new StatusNetOAuth($api, $ckey, $csecret, $otoken, $osecret);
}
$connection = new StatusNetOAuth($api, $ckey, $csecret, $otoken, $osecret);
diff --git
a/twitter/twitter.php
b/twitter/twitter.php
index
54d9094
..
cfa7bfd
100644
(file)
--- a/
twitter/twitter.php
+++ b/
twitter/twitter.php
@@
-940,7
+940,7
@@
function twitter_fetchtimeline(App $a, $uid)
$application_name = Config::get('twitter', 'application_name');
if ($application_name == "") {
$application_name = Config::get('twitter', 'application_name');
if ($application_name == "") {
- $application_name =
$a->getHostN
ame();
+ $application_name =
DI::baseUrl()->getHostn
ame();
}
$has_picture = false;
}
$has_picture = false;
@@
-1633,7
+1633,7
@@
function twitter_fetchhometimeline(App $a, $uid)
$application_name = Config::get('twitter', 'application_name');
if ($application_name == "") {
$application_name = Config::get('twitter', 'application_name');
if ($application_name == "") {
- $application_name =
$a->getHostN
ame();
+ $application_name =
DI::baseUrl()->getHostn
ame();
}
$connection = new TwitterOAuth($ckey, $csecret, $otoken, $osecret);
}
$connection = new TwitterOAuth($ckey, $csecret, $otoken, $osecret);
diff --git
a/xmpp/xmpp.php
b/xmpp/xmpp.php
index
f596a67
..
cbb770f
100644
(file)
--- a/
xmpp/xmpp.php
+++ b/
xmpp/xmpp.php
@@
-13,6
+13,7
@@
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\Core\Renderer;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\Core\Renderer;
+use Friendica\DI;
use Friendica\Util\Strings;
function xmpp_install()
use Friendica\Util\Strings;
function xmpp_install()
@@
-167,7
+168,7
@@
function xmpp_converse(App $a)
PConfig::set(local_user(), "xmpp", "password", $password);
}
PConfig::set(local_user(), "xmpp", "password", $password);
}
- $jid = $a->user["nickname"] . "@" .
$a->getHostN
ame() . "/converse-" . Strings::getRandomHex(5);
+ $jid = $a->user["nickname"] . "@" .
DI::baseUrl()->getHostn
ame() . "/converse-" . Strings::getRandomHex(5);
$auto_login = "auto_login: true,
authentication: 'login',
$auto_login = "auto_login: true,
authentication: 'login',