X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=jappixmini%2Fjappixmini.php;h=23f99f17ad211fabf1278ce96d2d857e57fed0ec;hb=f1514063559930de791c0bff18a3f6ae4b455f7c;hp=dc40840ab429f734b60dd11ddc6fb2c0e56f29e7;hpb=c6e5bc3429c9c610895ba826d841cddd8c0f378b;p=friendica-addons.git
diff --git a/jappixmini/jappixmini.php b/jappixmini/jappixmini.php
index dc40840a..23f99f17 100644
--- a/jappixmini/jappixmini.php
+++ b/jappixmini/jappixmini.php
@@ -65,8 +65,10 @@
use Friendica\App;
use Friendica\Core\Addon;
use Friendica\Core\Config;
+use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\Model\User;
+use Friendica\Util\Network;
function jappixmini_install()
{
@@ -326,58 +328,58 @@ function jappixmini_settings(App $a, &$s)
}
$s .= '';
- $s .= '' . t('Jappix Mini') . '
';
+ $s .= '' . L10n::t('Jappix Mini') . '
';
$s .= '';
$s .= '
';
$s .= '
';
- $s .= '' . t('Jappix Mini') . '
';
+ $s .= '' . L10n::t('Jappix Mini') . '
';
$s .= '';
- $s .= '
';
+ $s .= '
';
$s .= '
';
$s .= '
';
- $s .= '
';
+ $s .= '
';
$s .= '
';
$s .= '
';
- $s .= '
';
+ $s .= '
';
$s .= '
';
$s .= '
';
- $s .= '
';
+ $s .= '
';
$s .= '
';
$s .= '
';
if ($defaultbosh == "") {
- $s .= '
';
+ $s .= '
';
$s .= '
';
$s .= '
';
}
- $s .= '
';
+ $s .= '
';
$s .= '
';
$s .= '
';
$s .= '
';
$onchange = "document.getElementById('jappixmini-friendica-password').disabled = !this.checked;jappixmini_set_password();";
- $s .= '
';
+ $s .= '
';
$s .= '
';
$s .= '
';
- $s .= '
';
+ $s .= '
';
$s .= '
';
$s .= '
';
- $s .= '
';
+ $s .= '
';
$s .= '
';
$s .= '
';
- $s .= '
';
+ $s .= '
';
$s .= '
';
$s .= '
';
- $s .= '
';
+ $s .= '
';
$s .= '
';
$s .= '
';
if ($info_text) {
$s .= '
Configuration help:
' . $info_text . '
';
}
$s .= '
Status:
Addon knows ' . $address_cnt . ' Jabber addresses of ' . $contact_cnt . ' Friendica contacts (takes some time, usually 10 minutes, to update).
';
- $s .= '
';
- $s .= '
';
+ $s .= '
';
+ $s .= '
';
$s .= '
';
@@ -657,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);