use Friendica\Content\Nav;
use Friendica\Core\Addon;
use Friendica\Core\Config;
+use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\Core\System;
use Friendica\Core\Worker;
intval(local_user())
);
if (! DBM::is_result($r)) {
- notice( t('Profile not found.') . EOL);
+ notice(L10n::t('Profile not found.') . EOL);
goaway('profiles');
return; // NOTREACHED
}
dbesc($name)
);
- info( t('New profile created.') . EOL);
+ info(L10n::t('New profile created.') . EOL);
if (DBM::is_result($r3) && count($r3) == 1) {
goaway('profiles/' . $r3[0]['id']);
}
intval($a->argv[2])
);
if(! DBM::is_result($r1)) {
- notice( t('Profile unavailable to clone.') . EOL);
+ notice(L10n::t('Profile unavailable to clone.') . EOL);
killme();
return;
}
intval(local_user()),
dbesc($name)
);
- info( t('New profile created.') . EOL);
+ info(L10n::t('New profile created.') . EOL);
if ((DBM::is_result($r3)) && (count($r3) == 1)) {
goaway('profiles/'.$r3[0]['id']);
}
intval(local_user())
);
if (! DBM::is_result($r)) {
- notice( t('Profile not found.') . EOL);
+ notice(L10n::t('Profile not found.') . EOL);
killme();
return;
}
function profiles_post(App $a) {
if (! local_user()) {
- notice( t('Permission denied.') . EOL);
+ notice(L10n::t('Permission denied.') . EOL);
return;
}
intval(local_user())
);
if (! DBM::is_result($orig)) {
- notice( t('Profile not found.') . EOL);
+ notice(L10n::t('Profile not found.') . EOL);
return;
}
$profile_name = notags(trim($_POST['profile_name']));
if (! strlen($profile_name)) {
- notice( t('Profile Name is required.') . EOL);
+ notice(L10n::t('Profile Name is required.') . EOL);
return;
}
function profiles_content(App $a) {
if (! local_user()) {
- notice( t('Permission denied.') . EOL);
+ notice(L10n::t('Permission denied.') . EOL);
return;
}
intval(local_user())
);
if (! DBM::is_result($r)) {
- notice( t('Profile not found.') . EOL);
+ notice(L10n::t('Profile not found.') . EOL);
return;
}