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
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan-Hendrik Willms
Vips
Commits
62998c5b
Commit
62998c5b
authored
2 years ago
by
Elmar Ludwig
Browse files
Options
Downloads
Patches
Plain Diff
minor cleanup (no ticket)
parent
9209d705
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
exercises/Exercise.php
+6
-12
6 additions, 12 deletions
exercises/Exercise.php
locale/en/LC_MESSAGES/vips.po
+3
-3
3 additions, 3 deletions
locale/en/LC_MESSAGES/vips.po
with
9 additions
and
15 deletions
exercises/Exercise.php
+
6
−
12
View file @
62998c5b
...
...
@@ -423,31 +423,25 @@ abstract class Exercise extends SimpleORMap
}
/**
* Create a template for solving an exercise.
*
* @return The template
* Return a template for solving an exercise.
*/
function
getSolveTemplate
(
$solution
,
$assignment
,
$user_id
)
public
function
getSolveTemplate
(
$solution
,
$assignment
,
$user_id
)
{
return
$this
->
getViewTemplate
(
'solve'
,
$solution
,
$assignment
,
$user_id
);
}
/**
* Create a template for correcting an exercise.
*
* @return The template
* Return a template for correcting an exercise.
*/
function
getCorrectionTemplate
(
$solution
)
public
function
getCorrectionTemplate
(
$solution
)
{
return
$this
->
getViewTemplate
(
'correct'
,
$solution
,
$solution
->
assignment
,
$solution
->
user_id
);
}
/**
* Create a template for printing an exercise.
*
* @return The template
* Return a template for printing an exercise.
*/
function
getPrintTemplate
(
$solution
,
$assignment
,
$user_id
)
public
function
getPrintTemplate
(
$solution
,
$assignment
,
$user_id
)
{
return
$this
->
getViewTemplate
(
'print'
,
$solution
,
$assignment
,
$user_id
);
}
...
...
This diff is collapsed.
Click to expand it.
locale/en/LC_MESSAGES/vips.po
+
3
−
3
View file @
62998c5b
...
...
@@ -2,7 +2,7 @@
msgid ""
msgstr ""
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-12-16 12:
32
+0100\n"
"POT-Creation-Date: 2022-12-16 12:
45
+0100\n"
"PO-Revision-Date: 2011-12-07 13:49+0200\n"
"Language: en\n"
"MIME-Version: 1.0\n"
...
...
@@ -1151,7 +1151,7 @@ msgid "Titel"
msgstr "Title"
#: controllers/solutions.php:1555 exercises/Exercise.php:103
#: exercises/Exercise.php:5
91
exercises/Exercise.php:6
12
#: exercises/Exercise.php:5
85
exercises/Exercise.php:6
06
msgid "Aufgabe"
msgstr "Task"
...
...
@@ -1189,7 +1189,7 @@ msgstr ""
"This page gives a summary of the average number of points and the proportion "
"of correct solutions for each exercise."
#: exercises/Exercise.php:5
50
exercises/Exercise.php:5
72
#: exercises/Exercise.php:5
44
exercises/Exercise.php:5
66
msgid "Unbekannter Aufgabentyp: "
msgstr "Unknown task type: "
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment