use Friendica\Model\FileTag;
use Friendica\Model\GContact;
use Friendica\Model\Profile;
+use Friendica\Util\Strings;
use Friendica\Util\XML;
require_once 'boot.php';
}
return Renderer::replaceMacros(Renderer::getMarkupTemplate('nets.tpl'), array(
- '$title' => L10n::t('Networks'),
+ '$title' => L10n::t('Protocols'),
'$desc' => '',
'$sel_all' => (($selected == '') ? 'selected' : ''),
- '$all' => L10n::t('All Networks'),
+ '$all' => L10n::t('All Protocols'),
'$nets' => $nets,
'$base' => $baseurl,
));
return '';
}
- if (!Feature::isEnabled(local_user(), 'filing')) {
- return '';
- }
-
$saved = PConfig::get(local_user(), 'system', 'filetags');
if (!strlen($saved)) {
return;
if (!$cid) {
if (Profile::getMyURL()) {
$contact = DBA::selectFirst('contact', ['id'],
- ['nurl' => normalise_link(Profile::getMyURL()), 'uid' => $profile_uid]);
+ ['nurl' => Strings::normaliseLink(Profile::getMyURL()), 'uid' => $profile_uid]);
if (DBA::isResult($contact)) {
$cid = $contact['id'];
} else {
- $gcontact = DBA::selectFirst('gcontact', ['id'], ['nurl' => normalise_link(Profile::getMyURL())]);
+ $gcontact = DBA::selectFirst('gcontact', ['id'], ['nurl' => Strings::normaliseLink(Profile::getMyURL())]);
if (DBA::isResult($gcontact)) {
$zcid = $gcontact['id'];
}