Merge pull request 'Drop the comment interval setting' (#40) from feature/comment-auto-interval into main
Reviewed-on: #40
This commit was merged in pull request #40.
This commit is contained in:
commit
c6567b5e28
7 files changed
+23
-86
No files matched your search
@@ -159,10 +159,6 @@ class SlidesTable extends Table
|
||||
$settings['private'] = filter_var($input['private'] ?? false, FILTER_VALIDATE_BOOLEAN);
|
||||
$settings['comments'] = filter_var($input['comments'] ?? false, FILTER_VALIDATE_BOOLEAN);
|
||||
$settings['comment_ratings'] = filter_var($input['comment_ratings'] ?? false, FILTER_VALIDATE_BOOLEAN);
|
||||
$interval = (int)($input['comment_interval'] ?? $settings['comment_interval']);
|
||||
if (in_array($interval, Slide::COMMENT_INTERVALS, true)) {
|
||||
$settings['comment_interval'] = $interval;
|
||||
}
|
||||
break;
|
||||
case Slide::TYPE_QUIZ:
|
||||
$limit = (int)($input['time_limit'] ?? $settings['time_limit']);
|
||||
|
||||
Reference in new issue
Block a user