Skip to content

Commit

Permalink
Remove dependency on Factory in AdminController
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonge committed Jan 4, 2022
1 parent 83d5ccd commit e1541bd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libraries/src/MVC/Controller/AdminController.php
Expand Up @@ -12,7 +12,6 @@

use Joomla\CMS\Application\CMSApplication;
use Joomla\CMS\Component\ComponentHelper;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\Factory\MVCFactoryInterface;
use Joomla\CMS\MVC\Model\BaseDatabaseModel;
Expand Down Expand Up @@ -224,7 +223,7 @@ public function publish()
{
if ($errors)
{
Factory::getApplication()->enqueueMessage(Text::plural($this->text_prefix . '_N_ITEMS_FAILED_PUBLISHING', \count($cid)), 'error');
$this->app->enqueueMessage(Text::plural($this->text_prefix . '_N_ITEMS_FAILED_PUBLISHING', \count($cid)), 'error');
}
else
{
Expand Down

0 comments on commit e1541bd

Please sign in to comment.