Commit a3b7905ed0b476011550e3ffe2dd193a9f089806

Authored by Karnovsky A
1 parent 8a564f8f

UrlManager

Showing 1 changed file with 3 additions and 0 deletions   Show diff stats
common/modules/product/CatalogUrlManager.php
@@ -49,6 +49,9 @@ class CatalogUrlManager implements UrlRuleInterface { @@ -49,6 +49,9 @@ class CatalogUrlManager implements UrlRuleInterface {
49 }/* elseif (strpos($paths[2], 'word:') === 0) { 49 }/* elseif (strpos($paths[2], 'word:') === 0) {
50 $params['word'] = substr($paths[2], 5); 50 $params['word'] = substr($paths[2], 5);
51 }*/ 51 }*/
  52 + else {
  53 + throw new HttpException(404 ,'Page not found');
  54 + }
52 } 55 }
53 } elseif ($paths[0] == 'product') { 56 } elseif ($paths[0] == 'product') {
54 $product = ProductSearch::findByAlias($paths[1]); 57 $product = ProductSearch::findByAlias($paths[1]);