Skip to content

Commit

Permalink
#91 Fix deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed Jan 23, 2025
1 parent a48ad66 commit 7e0cc62
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion controllers/grid/form/CustomBlockForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
use PKP\facades\Locale;
use PKP\form\Form;
use PKP\plugins\PluginRegistry;
use PKP\core\PKPApplication;

class CustomBlockForm extends Form
{
Expand Down Expand Up @@ -60,7 +61,8 @@ public function initData()
$contextId = $this->contextId;
$plugin = $this->plugin;

$templateMgr = TemplateManager::getManager();
$request = PKPApplication::get()->getRequest();
$templateMgr = TemplateManager::getManager($request);

$existingBlockName = null;
$blockTitle = null;
Expand Down

0 comments on commit 7e0cc62

Please sign in to comment.