1
0
Fork 0

Update functions and calls

Update function names and calls.
This commit is contained in:
Adam Magness 2018-01-09 22:42:04 -05:00
commit a3ef9e35ec
14 changed files with 151 additions and 154 deletions

View file

@ -1,8 +1,8 @@
<?php
/**
* @file include/contact_widgets.php
*/
use Friendica\Content\ContactSelector;
use Friendica\Content\Feature;
use Friendica\Core\System;
use Friendica\Core\Config;
@ -10,8 +10,6 @@ use Friendica\Core\PConfig;
use Friendica\Database\DBM;
use Friendica\Model\GContact;
require_once 'include/contact_selectors.php';
function follow_widget($value = "")
{
return replace_macros(get_markup_template('follow.tpl'), array(
@ -119,7 +117,7 @@ function networks_widget($baseurl, $selected = '')
while ($rr = dba::fetch($r)) {
/// @TODO If 'network' is not there, this triggers an E_NOTICE
if ($rr['network']) {
$nets[] = array('ref' => $rr['network'], 'name' => network_to_name($rr['network']), 'selected' => (($selected == $rr['network']) ? 'selected' : '' ));
$nets[] = array('ref' => $rr['network'], 'name' => ContactSelector::networkToName($rr['network']), 'selected' => (($selected == $rr['network']) ? 'selected' : '' ));
}
}
dba::close($r);