Skip to content

Commit

Permalink
Revert immutable changes
Browse files Browse the repository at this point in the history
  • Loading branch information
laoneo committed Sep 11, 2019
1 parent 6ed895b commit 90eb3b0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions libraries/src/Plugin/CMSPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

\defined('JPATH_PLATFORM') or die;

use Joomla\CMS\Event\AbstractImmutableEvent;
use Joomla\CMS\Extension\PluginInterface;
use Joomla\CMS\Factory;
use Joomla\Event\AbstractEvent;
Expand Down Expand Up @@ -287,11 +286,7 @@ function (AbstractEvent $event) use ($methodName)

// Restore the old results and add the new result from our method call
array_push($allResults, $result);

if (!$event instanceof AbstractImmutableEvent)
{
$event['result'] = $allResults;
}
$event['result'] = $allResults;
}
);
}
Expand Down

0 comments on commit 90eb3b0

Please sign in to comment.