Update functions and calls

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

View file

@ -3,6 +3,7 @@
* @file include/text.php
*/
use Friendica\App;
use Friendica\Content\ContactSelector;
use Friendica\Content\Feature;
use Friendica\Content\Smilies;
use Friendica\Core\Config;
@ -2048,16 +2049,14 @@ function formatBytes($bytes, $precision = 2) {
*/
function format_network_name($network, $url = 0) {
if ($network != "") {
require_once 'include/contact_selectors.php';
if ($url != "") {
$network_name = '<a href="'.$url.'">'.network_to_name($network, $url)."</a>";
$network_name = '<a href="'.$url.'">'.ContactSelector::networkToName($network, $url)."</a>";
} else {
$network_name = network_to_name($network);
$network_name = ContactSelector::networkToName($network);
}
return $network_name;
}
}
/**