1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-24 15:13:04 +02:00

Fix for news.php?all SEF URL.

This commit is contained in:
Cameron
2013-12-19 23:27:30 -08:00
parent a6a28cb4e1
commit 71d6e81c8b

View File

@@ -154,7 +154,7 @@ class core_news_sef_noid_url extends eUrlConfig
} }
## no controller/action pair - news item view - map to extend.xxx ## no controller/action pair - news item view - map to extend.xxx
if(strpos($pathInfo, '/') === false) if(strpos($pathInfo, '/') === false && $pathInfo != 'All')
{ {
$route = 'view/item'; $route = 'view/item';
$id = is_numeric($pathInfo) ? intval($pathInfo) : $this->itemIdByTitle($pathInfo); $id = is_numeric($pathInfo) ? intval($pathInfo) : $this->itemIdByTitle($pathInfo);
@@ -223,6 +223,11 @@ class core_news_sef_noid_url extends eUrlConfig
//return 'list/year'; //return 'list/year';
break; break;
case 'all':
$this->legacyQueryString = 'all.0.'.$page;
return 'list/all';
break;
# force not found # force not found
default: default:
return false; return false;