Skip to content

Commit

Permalink
pkp/pkp-lib#8333 Replaced CONTEXT_ID_NONE by SITE_CONTEXT_ID
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasraoni committed Jul 15, 2024
1 parent 9ad23c8 commit cfd79cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion StaticPagesPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public function callbackHandleContent($hookName, $args)
// Look for a static page with the given path
$context = $request->getContext();
$staticPage = $staticPagesDao->getByPath(
$context?->getId() ?? Application::CONTEXT_ID_NONE,
$context?->getId() ?? Application::SITE_CONTEXT_ID,
$path
);
}
Expand Down

0 comments on commit cfd79cb

Please sign in to comment.