From 1fa59cbbd6098825dcf253a9531acbd34ec59bed Mon Sep 17 00:00:00 2001 From: plegall Date: Tue, 29 Dec 2020 16:42:22 +0100 Subject: [PATCH] set admin page title only once for all edit photo tabs --- admin/photo.php | 6 ++++++ admin/themes/default/template/picture_coi.tpl | 2 -- admin/themes/default/template/picture_modify.tpl | 2 -- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/admin/photo.php b/admin/photo.php index 5c8093168..b0f23da04 100644 --- a/admin/photo.php +++ b/admin/photo.php @@ -53,6 +53,12 @@ $tabsheet->set_id('photo'); $tabsheet->select($page['tab']); $tabsheet->assign(); +$template->assign( + array( + 'ADMIN_PAGE_TITLE' => l10n('Edit photo #%s', $_GET['image_id']), + ) + ); + // +-----------------------------------------------------------------------+ // | Load the tab | // +-----------------------------------------------------------------------+ diff --git a/admin/themes/default/template/picture_coi.tpl b/admin/themes/default/template/picture_coi.tpl index d5c2ec431..98fc78cd4 100644 --- a/admin/themes/default/template/picture_coi.tpl +++ b/admin/themes/default/template/picture_coi.tpl @@ -3,8 +3,6 @@ {/html_head} {combine_script id='jquery.jcrop' load='footer' require='jquery' path='themes/default/js/plugins/jquery.Jcrop.min.js'} -

{$TITLE} › {'Edit photo'|@translate} {$TABSHEET_TITLE}

-
diff --git a/admin/themes/default/template/picture_modify.tpl b/admin/themes/default/template/picture_modify.tpl index 500550a67..91077a90a 100644 --- a/admin/themes/default/template/picture_modify.tpl +++ b/admin/themes/default/template/picture_modify.tpl @@ -84,8 +84,6 @@ $('#action-delete-picture').on('click', function() { }()); {/footer_script} -

{'Edit photo #%s'|@translate:$INTRO.id}

-