Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.4] Rebuild mod_users_latest with new Joomla 4 structure #40092

Merged
merged 18 commits into from
Mar 17, 2023
Prev Previous commit
Next Next commit
Delete Factory class
Delete Factory class
  • Loading branch information
sandewt authored Mar 13, 2023
commit bd7d66a2963dc4e4d0ae5a9a62bb39db066ad67f
3 changes: 1 addition & 2 deletions modules/mod_users_latest/src/Helper/UsersLatestHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
namespace Joomla\Module\UsersLatest\Site\Helper;

use Joomla\CMS\Application\SiteApplication;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\Database\DatabaseAwareInterface;
use Joomla\Database\DatabaseAwareTrait;
Expand Down Expand Up @@ -68,7 +67,7 @@ public function getUsers(Registry $params, SiteApplication $app): array
try {
return (array) $db->loadObjectList();
} catch (\RuntimeException $e) {
Factory::getApplication()->enqueueMessage(Text::_('JERROR_AN_ERROR_HAS_OCCURRED'), 'error');
$app->enqueueMessage(Text::_('JERROR_AN_ERROR_HAS_OCCURRED'), 'error');

return [];
}
Expand Down