set admin page title only once for all edit photo tabs

This commit is contained in:
plegall
2020-12-29 16:42:22 +01:00
parent 684347691b
commit 1fa59cbbd6
3 changed files with 6 additions and 4 deletions

View File

@@ -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 |
// +-----------------------------------------------------------------------+

View File

@@ -3,8 +3,6 @@
{/html_head}
{combine_script id='jquery.jcrop' load='footer' require='jquery' path='themes/default/js/plugins/jquery.Jcrop.min.js'}
<h2>{$TITLE} &#8250; {'Edit photo'|@translate} {$TABSHEET_TITLE}</h2>
<form method="post">
<fieldset>

View File

@@ -84,8 +84,6 @@ $('#action-delete-picture').on('click', function() {
}());
{/footer_script}
<h2>{'Edit photo #%s'|@translate:$INTRO.id}</h2>
<form action="{$F_ACTION}" method="post" id="pictureModify">
<div id='picture-preview'>
<div class='picture-preview-actions'>