Valc / jmlocalise

GNU General Public License v2.0
3 stars 2 forks source link

Class "JRoute" not found #5

Open uzielweb opened 1 year ago

uzielweb commented 1 year ago

Solution: in administrator\components\comlocalise\Model\PackagefileModel.php Line 644 Change `$app->redirect(\JRoute::('index.php?option=comlocalise&view=packagefile&layout=edit&id=' . $this->getState('packagefile.id'), false)); by $app->redirect(Route::('index.php?option=com_localise&view=packagefile&layout=edit&id=' . $this->getState('packagefile.id'), false));`

in administrator\components\comlocalise\tmpl\languages\default.php in the line 15 add use Joomla\CMS\Router\Route; in the line 43 change `<form action="<?php echo JRoute::('index.php?option=comlocalise&view=languages');?>" method="post" name="adminForm" id="adminForm"> by <form action="<?php echo Route::('index.php?option=com_localise&view=languages');?>" method="post" name="adminForm" id="adminForm">`

uzielweb commented 3 weeks ago

I will fix all this code NOW!