From 940bc21ae6315dbdc964f7ffa16b7478815027a0 Mon Sep 17 00:00:00 2001 From: Leo Feyer Date: Fri, 24 Feb 2012 18:23:55 +0100 Subject: [PATCH] Added support for folder-style URLs (see #3921) --- contao/dca/tl_calendar_events.php | 2 +- contao/dca/tl_calendar_feed.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contao/dca/tl_calendar_events.php b/contao/dca/tl_calendar_events.php index f0862bb993..85dd67f245 100644 --- a/contao/dca/tl_calendar_events.php +++ b/contao/dca/tl_calendar_events.php @@ -191,7 +191,7 @@ 'exclude' => true, 'search' => true, 'inputType' => 'text', - 'eval' => array('rgxp'=>'alnum', 'unique'=>true, 'spaceToUnderscore'=>true, 'maxlength'=>128, 'tl_class'=>'w50'), + 'eval' => array('rgxp'=>'alias', 'unique'=>true, 'spaceToUnderscore'=>true, 'maxlength'=>128, 'tl_class'=>'w50'), 'save_callback' => array ( array('tl_calendar_events', 'generateAlias') diff --git a/contao/dca/tl_calendar_feed.php b/contao/dca/tl_calendar_feed.php index 12f7d15c87..fe4ae0ca88 100644 --- a/contao/dca/tl_calendar_feed.php +++ b/contao/dca/tl_calendar_feed.php @@ -147,7 +147,7 @@ 'exclude' => true, 'search' => true, 'inputType' => 'text', - 'eval' => array('mandatory'=>true, 'rgxp'=>'alnum', 'unique'=>true, 'spaceToUnderscore'=>true, 'maxlength'=>128, 'tl_class'=>'w50'), + 'eval' => array('mandatory'=>true, 'rgxp'=>'alias', 'unique'=>true, 'spaceToUnderscore'=>true, 'maxlength'=>128, 'tl_class'=>'w50'), 'save_callback' => array ( array('tl_calendar_feed', 'checkFeedAlias')