Skip to content
Permalink
Browse files

Fix for wildcard pages in the CMS

  • Loading branch information...
David McReynolds
David McReynolds committed Dec 6, 2017
1 parent f012742 commit a71d525e64c562e4854621e69194ac2189a1ced5
Showing with 1 addition and 2 deletions.
  1. +1 −2 fuel/modules/fuel/models/Fuel_pages_model.php
@@ -221,7 +221,6 @@ public function find_by_location($location, $just_published = 'yes')
{
$where .= ' AND published = "yes"';
}
}
else
{
@@ -231,7 +230,7 @@ public function find_by_location($location, $just_published = 'yes')
$data = $this->find_one_array($where, 'location desc');
// case sensitive check
if (empty($data) OR $data['location'] != $location)
if (empty($data) OR ($data['location'] != $location AND $data['location'] != $wildcard_location.'/:any'))
{
return array();
}

0 comments on commit a71d525

Please sign in to comment.
You can’t perform that action at this time.