]> git.mxchange.org Git - friendica-addons.git/blobdiff - jappixmini/jappixmini.php
Merge pull request #585 from annando/nicer-cat
[friendica-addons.git] / jappixmini / jappixmini.php
index 8b58ecb39ffd6884c860ba760e1d26b08201d2a8..37d2ce5c427697e5863b4639d39ead5ad0efe7ba 100644 (file)
@@ -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);