Skip to content
Snippets Groups Projects
Commit 62998c5b authored by Elmar Ludwig's avatar Elmar Ludwig
Browse files

minor cleanup (no ticket)

parent 9209d705
No related branches found
No related tags found
No related merge requests found
...@@ -423,31 +423,25 @@ abstract class Exercise extends SimpleORMap ...@@ -423,31 +423,25 @@ abstract class Exercise extends SimpleORMap
} }
/** /**
* Create a template for solving an exercise. * Return a template for solving an exercise.
*
* @return The template
*/ */
function getSolveTemplate($solution, $assignment, $user_id) public function getSolveTemplate($solution, $assignment, $user_id)
{ {
return $this->getViewTemplate('solve', $solution, $assignment, $user_id); return $this->getViewTemplate('solve', $solution, $assignment, $user_id);
} }
/** /**
* Create a template for correcting an exercise. * Return a template for correcting an exercise.
*
* @return The template
*/ */
function getCorrectionTemplate($solution) public function getCorrectionTemplate($solution)
{ {
return $this->getViewTemplate('correct', $solution, $solution->assignment, $solution->user_id); return $this->getViewTemplate('correct', $solution, $solution->assignment, $solution->user_id);
} }
/** /**
* Create a template for printing an exercise. * Return a template for printing an exercise.
*
* @return The template
*/ */
function getPrintTemplate($solution, $assignment, $user_id) public function getPrintTemplate($solution, $assignment, $user_id)
{ {
return $this->getViewTemplate('print', $solution, $assignment, $user_id); return $this->getViewTemplate('print', $solution, $assignment, $user_id);
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Report-Msgid-Bugs-To: \n" "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" "PO-Revision-Date: 2011-12-07 13:49+0200\n"
"Language: en\n" "Language: en\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
...@@ -1151,7 +1151,7 @@ msgid "Titel" ...@@ -1151,7 +1151,7 @@ msgid "Titel"
msgstr "Title" msgstr "Title"
#: controllers/solutions.php:1555 exercises/Exercise.php:103 #: controllers/solutions.php:1555 exercises/Exercise.php:103
#: exercises/Exercise.php:591 exercises/Exercise.php:612 #: exercises/Exercise.php:585 exercises/Exercise.php:606
msgid "Aufgabe" msgid "Aufgabe"
msgstr "Task" msgstr "Task"
...@@ -1189,7 +1189,7 @@ msgstr "" ...@@ -1189,7 +1189,7 @@ msgstr ""
"This page gives a summary of the average number of points and the proportion " "This page gives a summary of the average number of points and the proportion "
"of correct solutions for each exercise." "of correct solutions for each exercise."
#: exercises/Exercise.php:550 exercises/Exercise.php:572 #: exercises/Exercise.php:544 exercises/Exercise.php:566
msgid "Unbekannter Aufgabentyp: " msgid "Unbekannter Aufgabentyp: "
msgstr "Unknown task type: " msgstr "Unknown task type: "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment