Skip to content

Commit

Permalink
Fix the toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
brianteeman committed May 18, 2022
1 parent d75a9a9 commit 7b82aea
Showing 1 changed file with 9 additions and 1 deletion.
Expand Up @@ -11,10 +11,12 @@

\defined('_JEXEC') or die;

use Joomla\CMS\Factory;
use Joomla\CMS\Form\Form;
use Joomla\CMS\Helper\ContentHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
use Joomla\CMS\Router\Route;
use Joomla\CMS\Toolbar\Toolbar;
use Joomla\CMS\Toolbar\ToolbarHelper;

Expand Down Expand Up @@ -65,7 +67,13 @@ protected function addToolbar()

ToolbarHelper::title(Text::_('COM_FINDER_INDEXER_TOOLBAR_TITLE'), 'search-plus finder');

$toolbar->back();
$arrow = Factory::getLanguage()->isRtl() ? 'arrow-right' : 'arrow-left';

ToolbarHelper::link(
Route::_('index.php?option=com_finder&view=index'),
'JTOOLBAR_BACK',
$arrow
);

$toolbar->standardButton('index', 'COM_FINDER_INDEX')
->icon('icon-play')
Expand Down

0 comments on commit 7b82aea

Please sign in to comment.