1
0
Fork 0

Move Model\Profile::getTabs to new Module\BaseProfile class

This commit is contained in:
Hypolite Petovan 2020-01-26 09:49:11 -05:00
commit f2d917114f
10 changed files with 148 additions and 132 deletions

View file

@ -19,6 +19,7 @@ use Friendica\Model\Contact;
use Friendica\Model\Event;
use Friendica\Model\Item;
use Friendica\Model\Profile;
use Friendica\Module\BaseProfile;
use Friendica\Util\DateTimeFormat;
use Friendica\Util\Temporal;
@ -121,7 +122,7 @@ function cal_content(App $a)
$sql_extra = " AND `event`.`cid` = 0 " . $sql_perms;
// get the tab navigation bar
$tabs = Profile::getTabs($a, 'cal', false, $a->data['user']['nickname']);
$tabs = BaseProfile::getTabsHTML($a, 'cal', false, $a->data['user']['nickname']);
// The view mode part is similiar to /mod/events.php
if ($mode == 'view') {