From cec2ac91fd102c4a87154aa177eb2790f96978c4 Mon Sep 17 00:00:00 2001 From: jonrawlins Date: Fri, 8 Mar 2013 13:54:08 +0000 Subject: [PATCH] Update articlesrouter.class.php Line 59 is ignored and causes the $resourceid to always be set (to the container id), and therefore when a page is not found, doesn't redirect to the error page. --- .../components/articles/model/articles/articlesrouter.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/components/articles/model/articles/articlesrouter.class.php b/core/components/articles/model/articles/articlesrouter.class.php index 4fbca95..5559477 100644 --- a/core/components/articles/model/articles/articlesrouter.class.php +++ b/core/components/articles/model/articles/articlesrouter.class.php @@ -56,7 +56,7 @@ public function route() { $archive = explode(':',$archive); $archiveId = $archive[0]; $alias = array_search($archiveId,$this->modx->aliasMap); - if ($alias && strpos($search,$alias) !== false) { + if ($alias && strpos($search,$alias) != false) { $search = str_replace($alias,'',$search); $resourceId = $archiveId; if (isset($archive[1])) $prefix = $archive[1];