diff --git a/admin/intro.php b/admin/intro.php
index 740d088ed..56228b448 100644
--- a/admin/intro.php
+++ b/admin/intro.php
@@ -172,22 +172,6 @@ SELECT COUNT(*)
$template->assign('NB_COMMENTS', 0);
}
-if ($nb_photos > 0)
-{
- $query = '
-SELECT MIN(date_available)
- FROM '.IMAGES_TABLE.'
-;';
- list($first_date) = pwg_db_fetch_row(pwg_query($query));
-
- $template->assign(
- array(
- 'first_added_date' => format_date($first_date),
- 'first_added_age' => time_since($first_date, 'year', null, false, false),
- )
- );
-}
-
if ($conf['show_piwigo_latest_news'])
{
$news = get_piwigo_news(0, 1);
diff --git a/admin/maintenance_env.php b/admin/maintenance_env.php
index f00d7c45b..6689196b3 100644
--- a/admin/maintenance_env.php
+++ b/admin/maintenance_env.php
@@ -344,6 +344,28 @@ else
);
}
+$query = '
+SELECT
+ registration_date
+ FROM '.USER_INFOS_TABLE.'
+ WHERE user_id = 2
+;';
+$users = query2array($query);
+if (count($users) > 0)
+{
+ $installed_on = $users[0]['registration_date'];
+
+ if (!empty($installed_on))
+ {
+ $template->assign(
+ array(
+ 'INSTALLED_ON' => format_date($installed_on, array('day', 'month', 'year')),
+ 'INSTALLED_SINCE' => time_since($installed_on, 'day'),
+ )
+ );
+ }
+}
+
// +-----------------------------------------------------------------------+
// | Define advanced features |
// +-----------------------------------------------------------------------+
diff --git a/admin/themes/default/template/intro.tpl b/admin/themes/default/template/intro.tpl
index d12ea5912..d3011997b 100644
--- a/admin/themes/default/template/intro.tpl
+++ b/admin/themes/default/template/intro.tpl
@@ -174,13 +174,6 @@ let str_size = "";
{$STORAGE_USED}{'Storage used'|translate}
-{if $NB_PHOTOS > 1}
-
-
-{$first_added_age}{'First photo added'|translate}
-
-{/if}
-
{* .stat-boxes *}
diff --git a/admin/themes/default/template/maintenance_env.tpl b/admin/themes/default/template/maintenance_env.tpl
index 3a1fc664b..2a3e02916 100644
--- a/admin/themes/default/template/maintenance_env.tpl
+++ b/admin/themes/default/template/maintenance_env.tpl
@@ -13,6 +13,9 @@ const unit_MB = "{"%s MB"|@translate}"
- Piwigo {$PWG_VERSION} {'Check for upgrade'|@translate}
+{if isset($INSTALLED_ON)}
+ - {'Installed on %s, %s'|translate:$INSTALLED_ON:$INSTALLED_SINCE}
+{/if}
- {'Operating system'|@translate}: {$OS}
- PHP: {$PHP_VERSION} ({'Show info'|@translate}) [{$PHP_DATATIME}]
- {$DB_ENGINE}: {$DB_VERSION} [{$DB_DATATIME}]
diff --git a/language/en_UK/admin.lang.php b/language/en_UK/admin.lang.php
index 451963581..d84e1deac 100644
--- a/language/en_UK/admin.lang.php
+++ b/language/en_UK/admin.lang.php
@@ -333,7 +333,6 @@ $lang['File upload stopped by extension'] = 'File upload stopped by extension';
$lang['File'] = "File";
$lang['File/directory read error'] = "File/directory read error";
$lang['Find a new representant by random'] = "Find a new random album thumbnail";
-$lang['first photo added on %s'] = "first photo added on %s";
$lang['Follow Orientation'] = 'Follow Orientation';
$lang['Following plugins may not be compatible with the new version of Piwigo:'] = 'Following plugins may not be compatible with the new version of Piwigo:';
$lang['Following themes may not be compatible with the new version of Piwigo:'] = 'Following themes may not be compatible with the new version of Piwigo:';
@@ -988,7 +987,6 @@ $lang['Dashboard'] = 'Dashboard';
$lang['%sGB'] = '%s GB';
$lang['%sMB'] = '%s MB';
$lang['Storage used'] = 'Storage used';
-$lang['First photo added'] = 'First photo added';
$lang['No filter on album. Select one or type to search'] = 'No filter on album. Select one or type to search';
$lang['Piwigo Remote Sync is able to upload a whole folder hierarchy. If you run it again, only new photos will be uploaded.'] = 'Piwigo Remote Sync is able to upload a whole folder hierarchy. If you run it again, only new photos will be uploaded.';
$lang['Share / Send your photos directly from your Mac Os X (10.10 and following) to Piwigo'] = 'Share / Send your photos directly from your macOS (10.10 and later) to Piwigo';
@@ -1316,4 +1314,5 @@ $lang['and %d more'] = 'and %d more';
$lang['Picture to associate formats with'] = 'Picture to associate formats with';
$lang['The original picture will be detected with the filename (without extension).'] = 'The original picture will be detected with the filename (without extension).';
$lang['Delete %s format ?'] = 'Delete %s format ?';
+$lang['Installed on %s, %s'] = 'Installed on %s, %s';
// Leave this line empty
diff --git a/language/fr_FR/admin.lang.php b/language/fr_FR/admin.lang.php
index aab7172c8..fb4e75313 100644
--- a/language/fr_FR/admin.lang.php
+++ b/language/fr_FR/admin.lang.php
@@ -1316,4 +1316,5 @@ $lang['and %d more'] = 'et %d autre(s)';
$lang['Picture to associate formats with'] = 'Photo à associer avec les formats';
$lang['The original picture will be detected with the filename (without extension).'] = 'La photo originale sera détectée en comparant les noms des fichiers (sans extension).';
$lang['Delete %s format ?'] = 'Supprimer le format %s ?';
+$lang['Installed on %s, %s'] = 'Installé le %s, %s';
// Leave this line empty