Skip to content
Snippets Groups Projects
Commit 82a2f033 authored by Kathrin Osswald's avatar Kathrin Osswald
Browse files

Added check for empty string to regular expression for time controlled info banner settings.

parent 3aa88c0d
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,7 @@ Changes ...@@ -6,6 +6,7 @@ Changes
### Unreleased ### Unreleased
* 2020-08-07 - Added check for empty string to regular expression for time controlled info banner settings.
* 2020-08-05 - Added settings to be able to show a banner with information on selected pages. * 2020-08-05 - Added settings to be able to show a banner with information on selected pages.
PLEASE NOTE: For all scenarios to pass, the Moodle version 3.8.4+ (Build: 2019111804) is needed. PLEASE NOTE: For all scenarios to pass, the Moodle version 3.8.4+ (Build: 2019111804) is needed.
......
...@@ -848,7 +848,7 @@ if ($ADMIN->fulltree) { ...@@ -848,7 +848,7 @@ if ($ADMIN->fulltree) {
'theme_boost_campus/timedibenable', 'notchecked'); 'theme_boost_campus/timedibenable', 'notchecked');
// This will check for the desired date time format YYYY-MM-DD HH:MM:SS // This will check for the desired date time format YYYY-MM-DD HH:MM:SS
$timeregex = '/20[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])\s([0-1][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]/'; $timeregex = '/(20[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])\s([0-1][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9])|^$/';
// Start time for controlled information banner. // Start time for controlled information banner.
$name = 'theme_boost_campus/timedibstart'; $name = 'theme_boost_campus/timedibstart';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment