Skip to content

Commit

Permalink
Merge pull request #807 from creative-commoners/pulls/5.0/ctrl-curr
Browse files Browse the repository at this point in the history
ENH Stop using Controller::has_curr()
  • Loading branch information
GuySartorelli authored Feb 16, 2025
2 parents a3a5fdb + 3b136d5 commit b0929ee
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Model/BlogPostFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,10 @@ class BlogPostFilter extends Extension
{
/**
* Augment queries so that we don't fetch unpublished articles.
*
* @param SQLSelect $query
* @param DataQuery $query
*/
protected function augmentSQL(SQLSelect $query, ?DataQuery $dataQuery = null)
{

if (Controller::has_curr() && Controller::curr() instanceof LeftAndMain) {
if (Controller::curr() instanceof LeftAndMain) {
return;
}

Expand Down

0 comments on commit b0929ee

Please sign in to comment.