Skip to content

Commit

Permalink
Fix JRoute -> Route
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Babker committed Apr 14, 2019
1 parent c2d249a commit 2623741
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -16,6 +16,7 @@
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
use Joomla\CMS\Object\CMSObject;
use Joomla\CMS\Router\Route;
use Joomla\CMS\Toolbar\Toolbar;
use Joomla\CMS\Toolbar\ToolbarHelper;

Expand Down Expand Up @@ -149,15 +150,15 @@ protected function addToolbar()
if ($this->item->request_type === 'export')
{
ToolbarHelper::link(
JRoute::_('index.php?option=com_privacy&task=request.export&format=xml&id=' . (int) $this->item->id . $return),
Route::_('index.php?option=com_privacy&task=request.export&format=xml&id=' . (int) $this->item->id . $return),
'COM_PRIVACY_ACTION_EXPORT_DATA',
'download'
);

if (Factory::getConfig()->get('mailonline', 1))
{
ToolbarHelper::link(
JRoute::_('index.php?option=com_privacy&task=request.emailexport&id=' . (int) $this->item->id . $return),
Route::_('index.php?option=com_privacy&task=request.emailexport&id=' . (int) $this->item->id . $return),
'COM_PRIVACY_ACTION_EMAIL_EXPORT_DATA',
'mail'
);
Expand Down

0 comments on commit 2623741

Please sign in to comment.