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 49 }/* elseif (strpos($paths[2], 'word:') === 0) {
50 50 $params['word'] = substr($paths[2], 5);
51 51 }*/
  52 + else {
  53 + throw new HttpException(404 ,'Page not found');
  54 + }
52 55 }
53 56 } elseif ($paths[0] == 'product') {
54 57 $product = ProductSearch::findByAlias($paths[1]);
... ...