Skip to content

Commit

Permalink
Fix fatal error modRequest not found (#507)
Browse files Browse the repository at this point in the history
  • Loading branch information
halftrainedharry authored Aug 19, 2024
1 parent 79a6ec0 commit 35d3ae4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/components/fred/src/v2/Endpoint/Ajax/RenderElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,11 @@ class RenderElement extends Endpoint
private $elementClass = 'FredElement';
private $requestClass = 'modRequest';
private $resourceClass = 'modResource';

public function __construct(\Fred &$fred, $payload)
{
parent::__construct($fred, $payload);
$this->modx->loadClass($this->requestClass, '', false, true);
}

}

0 comments on commit 35d3ae4

Please sign in to comment.