Skip to content
This repository was archived by the owner on Apr 24, 2023. It is now read-only.
/ cfi Public archive

Commit d01b16b

Browse files
authored
Revert "FIX: Check on admin type application (#18)" (#19)
This reverts commit 7c127c0.
1 parent 7c127c0 commit d01b16b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cfi.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,6 @@ public function __construct(&$subject, $config)
5858

5959
private function initConstruct($ajax = false)
6060
{
61-
if (!$this->app->isClient('administrator')) {
62-
return;
63-
}
64-
6561
if (Version::MAJOR_VERSION > 3) {
6662
$this->app = Factory::getContainer()->get(Joomla\CMS\Application\AdministratorApplication::class);
6763
$this->appConfig = $this->app->getConfig();
@@ -74,6 +70,10 @@ private function initConstruct($ajax = false)
7470
$this->db = Factory::getDbo();
7571
}
7672

73+
if (!$this->app->isClient('administrator')) {
74+
return;
75+
}
76+
7777
$this->doc = Factory::getDocument();
7878

7979
if ($ajax) {

0 commit comments

Comments
 (0)