]> git.mxchange.org Git - friendica.git/blobdiff - mod/poco.php
Move /profile_photo to Module\Settings\Profile\Photo
[friendica.git] / mod / poco.php
index cbee264585dbd71e95a09e4d8a1f5b9f064c1866..8e7d63418afba2271c32b294fa15a2cef2240277 100644 (file)
@@ -6,12 +6,9 @@
 
 use Friendica\App;
 use Friendica\Content\Text\BBCode;
-use Friendica\Core\Cache;
-use Friendica\Core\Config;
 use Friendica\Core\Logger;
 use Friendica\Core\Protocol;
 use Friendica\Core\Renderer;
-use Friendica\Core\System;
 use Friendica\Database\DBA;
 use Friendica\DI;
 use Friendica\Protocol\PortableContact;
@@ -22,7 +19,7 @@ use Friendica\Util\XML;
 function poco_init(App $a) {
        $system_mode = false;
 
-       if (intval(Config::get('system', 'block_public')) || (Config::get('system', 'block_local_dir'))) {
+       if (intval(DI::config()->get('system', 'block_public')) || (DI::config()->get('system', 'block_local_dir'))) {
                throw new \Friendica\Network\HTTPException\ForbiddenException();
        }
 
@@ -256,7 +253,7 @@ function poco_init(App $a) {
                                if (isset($contact['account-type'])) {
                                        $contact['contact-type'] = $contact['account-type'];
                                }
-                               $about = Cache::get("about:" . $contact['updated'] . ":" . $contact['nurl']);
+                               $about = DI::cache()->get("about:" . $contact['updated'] . ":" . $contact['nurl']);
                                if (is_null($about)) {
                                        $about = BBCode::convert($contact['about'], false);
                                        DI::cache()->set("about:" . $contact['updated'] . ":" . $contact['nurl'], $about);