Skip to content

Commit

Permalink
[4.1] Child Templates buttons (#36241)
Browse files Browse the repository at this point in the history
Corrects the code so that the buttons are not double translated.

To test enable language debug

### Before

### After

Co-authored-by: Benjamin Trenkle <[email protected]>
  • Loading branch information
brianteeman and bembelimen authored Dec 8, 2021
1 parent a6ea5e7 commit 8ebd207
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ protected function addToolbar()
$clientId = (int) $this->get('State')->get('client_id');

// Add a shortcut to the templates list view.
ToolbarHelper::link('index.php?option=com_templates&view=templates&client_id=' . $clientId, Text::_('COM_TEMPLATES_MANAGER_TEMPLATES'), 'icon-code thememanager');
ToolbarHelper::link('index.php?option=com_templates&view=templates&client_id=' . $clientId, 'COM_TEMPLATES_MANAGER_TEMPLATES', 'icon-code thememanager');

// Set the title.
if ($clientId === 1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ protected function addToolbar()
$clientId = (int) $this->get('State')->get('client_id');

// Add a shortcut to the styles list view.
ToolbarHelper::link('index.php?option=com_templates&view=styles&client_id=' . $clientId, Text::_('COM_TEMPLATES_MANAGER_STYLES_BUTTON'), 'brush thememanager');
ToolbarHelper::link('index.php?option=com_templates&view=styles&client_id=' . $clientId, 'COM_TEMPLATES_MANAGER_STYLES_BUTTON', 'brush thememanager');

// Set the title.
if ($clientId === 1)
Expand Down

0 comments on commit 8ebd207

Please sign in to comment.