X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fnotes.php;h=ccd30926c8dd0dcd8f63f0e8c51293ba76055dad;hb=756de11cda548eb84c3d67ed10ba9daa1bcd5fb5;hp=6ecc819240ff67d817f27dc9ee91c7aa540d61ec;hpb=94eca7704130822bf83bb5fee6930dee6bae81dd;p=friendica.git diff --git a/mod/notes.php b/mod/notes.php index 6ecc819240..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,27 +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; } - $o = Profile::getTabs($a, true); + $o = BaseProfile::getTabsHTML($a, 'notes', true); if (!$update) { - $o .= '