X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=blogger%2Fblogger.php;h=5cf0d27b3f22397a717bd42437ed5c1fd5192e76;hb=05d2707d501b7b1cdd98b0802121e69a6df7d05d;hp=18a1b8eac47c93b252611f01b381145d2b75c414;hpb=1eb23e3667ac780ea59bad219fb1e3a0517421d9;p=friendica-addons.git
diff --git a/blogger/blogger.php b/blogger/blogger.php
index 18a1b8ea..5cf0d27b 100644
--- a/blogger/blogger.php
+++ b/blogger/blogger.php
@@ -9,10 +9,8 @@
use Friendica\App;
use Friendica\Content\Text\BBCode;
use Friendica\Core\Hook;
-use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\DI;
-use Friendica\Util\Network;
use Friendica\Util\XML;
function blogger_install()
@@ -25,22 +23,6 @@ function blogger_install()
Hook::register('connector_settings_post', 'addon/blogger/blogger.php', 'blogger_settings_post');
}
-function blogger_uninstall()
-{
- Hook::unregister('hook_fork', 'addon/blogger/blogger.php', 'blogger_hook_fork');
- Hook::unregister('post_local', 'addon/blogger/blogger.php', 'blogger_post_local');
- Hook::unregister('notifier_normal', 'addon/blogger/blogger.php', 'blogger_send');
- Hook::unregister('jot_networks', 'addon/blogger/blogger.php', 'blogger_jot_nets');
- Hook::unregister('connector_settings', 'addon/blogger/blogger.php', 'blogger_settings');
- Hook::unregister('connector_settings_post', 'addon/blogger/blogger.php', 'blogger_settings_post');
-
- // obsolete - remove
- Hook::unregister('post_local_end', 'addon/blogger/blogger.php', 'blogger_send');
- Hook::unregister('addon_settings', 'addon/blogger/blogger.php', 'blogger_settings');
- Hook::unregister('addon_settings_post', 'addon/blogger/blogger.php', 'blogger_settings_post');
-}
-
-
function blogger_jot_nets(App $a, array &$jotnets_fields)
{
if (!local_user()) {
@@ -52,7 +34,7 @@ function blogger_jot_nets(App $a, array &$jotnets_fields)
'type' => 'checkbox',
'field' => [
'blogger_enable',
- L10n::t('Post to blogger'),
+ DI::l10n()->t('Post to blogger'),
DI::pConfig()->get(local_user(), 'blogger', 'post_by_default')
]
];
@@ -86,40 +68,40 @@ function blogger_settings(App $a, &$s)
/* Add some HTML to the existing form */
$s .= '';
- $s .= ''. L10n::t('Blogger Export').'
';
+ $s .= ''. DI::l10n()->t('Blogger Export').'
';
$s .= '';
$s .= '