Skip to content

Commit

Permalink
Revert deprecated class fix after regression
Browse files Browse the repository at this point in the history
Revert deprecated class fix after regression
  • Loading branch information
ericdrosas87 committed Jul 11, 2024
1 parent 5013c4a commit 5ae1c7b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions api/plugins/nextbuilds/src/NextBuilds.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,13 @@
use Craft;
use craft\base\Plugin;
use craft\elements\Entry;
use craft\events\ElementStructureEvent;
use craft\events\ModelEvent;
use craft\events\MoveElementEvent;
use craft\helpers\ElementHelper;
use craft\services\Plugins;
use craft\events\PluginEvent;
use castiron\nextbuilds\services\Request as NextRequestService;

use craft\services\Structures;
use yii\base\Event;

/**
Expand Down Expand Up @@ -143,9 +142,9 @@ function (Event $event) {
);

Event::on(
Structures::class,
Structures::EVENT_AFTER_INSERT_ELEMENT,
function (MoveElementEvent $event) {
Entry::class,
Entry::EVENT_AFTER_MOVE_IN_STRUCTURE,
function (ElementStructureEvent $event) {
$entry = $event->sender;

if (
Expand Down

0 comments on commit 5ae1c7b

Please sign in to comment.