Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
Vips
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Uni Osnabrück
Plugins
Vips
Merge requests
!7
Couldn't fetch the linked file.
Vips modification feedback, re
#203
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Vips modification feedback, re
#203
vips-modification-feedback
into
master
Overview
1
Commits
12
Changes
4
Merged
Elmar Ludwig
requested to merge
vips-modification-feedback
into
master
1 year ago
Overview
1
Commits
12
Changes
4
Expand
0
0
Merge request reports
Viewing commit
e461b3f6
Prev
Next
Show latest version
4 files
+
39
−
17
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
e461b3f6
XML import / export
· e461b3f6
Michaela Brückner
authored
1 year ago
lib/VipsAssignment.php
+
11
−
0
Options
@@ -186,6 +186,17 @@ class VipsAssignment extends SimpleORMap
$data
[
'options'
][
'max_tries'
]
=
(
int
)
$test
->
limit
[
'tries'
];
}
// feedback options for assignment
if
(
$test
->
option
->
feedbackitems
)
{
$feedback_array
=
[];
foreach
(
$test
->
option
->
feedbackitems
->
feedback
as
$feedbackitem
)
{
$feedback_array
[]
=
[
'threshold'
=>
(
int
)
$feedbackitem
[
'threshold'
],
'feedback'
=>
Studip\Markup
::
purifyHtml
(
trim
(
$feedbackitem
))
];
}
}
if
(
$test
->
option
[
'scoring-mode'
]
==
'negative_points'
)
{
$data
[
'options'
][
'evaluation_mode'
]
=
1
;
}
else
if
(
$test
->
option
[
'scoring-mode'
]
==
'all_or_nothing'
)
{
Loading