use Friendica\Core\Protocol;
use Friendica\Database\DBA;
use Friendica\Core\Worker;
+use Friendica\DI;
function diaspora_install()
{
function diaspora_send(App $a, array &$b)
{
- $hostname = $a->getHostName();
+ $hostname = DI::baseUrl()->getHostname();
Logger::log('diaspora_send: invoked');
}
if (!Config::get('config', 'sender_email')) {
- $sender_email = 'noreply@' . $a->getHostName();
+ $sender_email = 'noreply@' . DI::baseUrl()->getHostname();
} else {
$sender_email = Config::get('config', 'sender_email');
}
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;
$application_name = Config::get('pumpio', 'application_name');
if ($application_name == "") {
- $application_name = $a->getHostName();
+ $application_name = DI::baseUrl()->getHostname();
}
$adminlist = explode(",", str_replace(" ", "", Config::get('config', 'admin_email')));
$application_name = Config::get('pumpio', 'application_name');
}
if ($application_name == "") {
- $application_name = $a->getHostName();
+ $application_name = DI::baseUrl()->getHostname();
}
$first_time = ($lastdate == "");
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';
if ($_POST['securemail-submit'] == L10n::t('Save and send test')) {
$sitename = Config::get('config', 'sitename');
- $hostname = $a->getHostName();
+ $hostname = DI::baseUrl()->getHostname();
if (strpos($hostname, ':')) {
$hostname = substr($hostname, 0, strpos($hostname, ':'));
}
$application_name = Config::get('statusnet', 'application_name');
}
if ($application_name == "") {
- $application_name = $a->getHostName();
+ $application_name = DI::baseUrl()->getHostname();
}
$connection = new StatusNetOAuth($api, $ckey, $csecret, $otoken, $osecret);
$application_name = Config::get('twitter', 'application_name');
if ($application_name == "") {
- $application_name = $a->getHostName();
+ $application_name = DI::baseUrl()->getHostname();
}
$has_picture = false;
$application_name = Config::get('twitter', 'application_name');
if ($application_name == "") {
- $application_name = $a->getHostName();
+ $application_name = DI::baseUrl()->getHostname();
}
$connection = new TwitterOAuth($ckey, $csecret, $otoken, $osecret);
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\Core\Renderer;
+use Friendica\DI;
use Friendica\Util\Strings;
function xmpp_install()
PConfig::set(local_user(), "xmpp", "password", $password);
}
- $jid = $a->user["nickname"] . "@" . $a->getHostName() . "/converse-" . Strings::getRandomHex(5);
+ $jid = $a->user["nickname"] . "@" . DI::baseUrl()->getHostname() . "/converse-" . Strings::getRandomHex(5);
$auto_login = "auto_login: true,
authentication: 'login',