X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fnotes.php;h=ccd30926c8dd0dcd8f63f0e8c51293ba76055dad;hb=756de11cda548eb84c3d67ed10ba9daa1bcd5fb5;hp=90afa16ca537db09b91ff69759803eace473a952;hpb=f6c3974c8f5c4038f234ba5c4c2189e6841c4554;p=friendica.git diff --git a/mod/notes.php b/mod/notes.php index 90afa16ca5..ccd30926c8 100644 --- a/mod/notes.php +++ b/mod/notes.php @@ -1,15 +1,31 @@ . + * */ use Friendica\App; use Friendica\Content\Nav; use Friendica\Content\Pager; -use Friendica\Core\L10n; use Friendica\Database\DBA; +use Friendica\DI; use Friendica\Model\Item; -use Friendica\Model\Profile; +use Friendica\Module\BaseProfile; function notes_init(App $a) { @@ -17,29 +33,21 @@ function notes_init(App $a) return; } - $profile = 0; - - $which = $a->user['nickname']; - Nav::setSelected('home'); - - //Profile::load($a, $which, $profile); } function notes_content(App $a, $update = false) { if (!local_user()) { - notice(L10n::t('Permission denied.') . EOL); + notice(DI::l10n()->t('Permission denied.') . EOL); return; } - require_once 'include/conversation.php'; - - $o = Profile::getTabs($a, true); + $o = BaseProfile::getTabsHTML($a, 'notes', true); if (!$update) { - $o .= '