X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=jappixmini%2Fjappixmini.php;h=37d2ce5c427697e5863b4639d39ead5ad0efe7ba;hb=4c4a8da6126cb6ff04f9e52bcab62129b6c5cd63;hp=8b58ecb39ffd6884c860ba760e1d26b08201d2a8;hpb=f8c162cbfb777793891f885e019eb8eae319dce1;p=friendica-addons.git diff --git a/jappixmini/jappixmini.php b/jappixmini/jappixmini.php index 8b58ecb3..37d2ce5c 100644 --- a/jappixmini/jappixmini.php +++ b/jappixmini/jappixmini.php @@ -68,6 +68,7 @@ use Friendica\Core\Config; use Friendica\Core\L10n; use Friendica\Core\PConfig; use Friendica\Model\User; +use Friendica\Util\Network; function jappixmini_install() { @@ -85,7 +86,7 @@ function jappixmini_install() // set standard configuration $info_text = Config::get("jappixmini", "infotext"); if (!$info_text) - set_confConfig::setig("jappixmini", "infotext", "To get the chat working, you need to know a BOSH host which works with your Jabber account. " . + Config::set("jappixmini", "infotext", "To get the chat working, you need to know a BOSH host which works with your Jabber account. " . "An example of a BOSH server that works for all accounts is https://bind.jappix.com/, but keep " . "in mind that the BOSH server can read along all chat messages. If you know that your Jabber " . "server also provides an own BOSH server, it is much better to use this one!" @@ -658,7 +659,7 @@ function jappixmini_cron(App $a, $d) try { // send request - $answer_json = fetch_url($url); + $answer_json = Network::fetchUrl($url); // parse answer $answer = json_decode($answer_json);