]> git.mxchange.org Git - friendica.git/blobdiff - mod/profiles.php
rename CSS attributes notify => notification
[friendica.git] / mod / profiles.php
index d979048a042a66086cbfbe8ba299005d9bd63961..53da8510c40472904a1e6920aabc7d0250c434ee 100644 (file)
@@ -8,7 +8,6 @@ use Friendica\BaseModule;
 use Friendica\Content\ContactSelector;
 use Friendica\Content\Feature;
 use Friendica\Content\Nav;
-use Friendica\Core\Config;
 use Friendica\Core\Hook;
 use Friendica\Core\Renderer;
 use Friendica\Core\Worker;
@@ -479,7 +478,7 @@ function profiles_post(App $a) {
 
                        // Update global directory in background
                        $url = $_SESSION['my_url'];
-                       if ($url && strlen(Config::get('system', 'directory'))) {
+                       if ($url && strlen(DI::config()->get('system', 'directory'))) {
                                Worker::add(PRIORITY_LOW, "Directory", $url);
                        }
 
@@ -599,7 +598,7 @@ function profiles_content(App $a) {
                        '$region' => ['region', DI::l10n()->t('Region/State:'), $r[0]['region']],
                        '$postal_code' => ['postal_code', DI::l10n()->t('Postal/Zip Code:'), $r[0]['postal-code']],
                        '$country_name' => ['country_name', DI::l10n()->t('Country:'), $r[0]['country-name']],
-                       '$age' => ((intval($r[0]['dob'])) ? '(' . DI::l10n()->t('Age: ') . Temporal::getAgeByTimezone($r[0]['dob'],$a->user['timezone'],$a->user['timezone']) . ')' : ''),
+                       '$age' => ((intval($r[0]['dob'])) ? '(' . DI::l10n()->t('Age: ') . DI::l10n()->tt('%d year old', '%d years old', Temporal::getAgeByTimezone($r[0]['dob'], $a->user['timezone'])) . ')' : ''),
                        '$gender' => DI::l10n()->t(ContactSelector::gender($r[0]['gender'])),
                        '$marital' => ['selector' => ContactSelector::maritalStatus($r[0]['marital']), 'value' => DI::l10n()->t($r[0]['marital'])],
                        '$with' => ['with', DI::l10n()->t("Who: \x28if applicable\x29"), strip_tags($r[0]['with']), DI::l10n()->t('Examples: cathy123, Cathy Williams, cathy@example.com')],