even more bug fixes...

parent 02283ba8
......@@ -259,7 +259,7 @@ class URI
{
$path = $path . (!preg_match('/\/$/', $path) ? '/' : '');
if (CONFIG_SEO_ALIASES === true && !preg_match(self::PATTERN, $path)) {
if ((bool) CONFIG_SEO_ALIASES === true && !preg_match(self::PATTERN, $path)) {
if (count(preg_split('=/=', $path, -1, PREG_SPLIT_NO_EMPTY)) === 1)
$path.= 'list/';
// Überprüfen, ob Alias vorhanden ist und diesen als URI verwenden
......
......@@ -41,7 +41,7 @@ class ArticlesFrontend extends Core\ModuleController {
Core\Registry::get('Breadcrumb')->replaceAnchestor($page['title'], 0, true);
Core\Registry::get('View')->assign('page', splitTextIntoPages(Core\Functions::rewriteInternalUri($page['text']), Core\Registry::get('URI')->getCleanQuery()));
Core\Registry::get('View')->assign('page', Core\Functions::splitTextIntoPages(Core\Functions::rewriteInternalUri($page['text']), Core\Registry::get('URI')->getCleanQuery()));
} else {
Core\Registry::get('URI')->redirect('errors/404');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment