From 62998c5b42756d58797bc2e00c1193dcd9cd1576 Mon Sep 17 00:00:00 2001 From: Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> Date: Fri, 16 Dec 2022 12:46:16 +0100 Subject: [PATCH] minor cleanup (no ticket) --- exercises/Exercise.php | 18 ++++++------------ locale/en/LC_MESSAGES/vips.po | 6 +++--- 2 files changed, 9 insertions(+), 15 deletions(-) diff --git a/exercises/Exercise.php b/exercises/Exercise.php index ece0fb1..1958375 100644 --- a/exercises/Exercise.php +++ b/exercises/Exercise.php @@ -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); } diff --git a/locale/en/LC_MESSAGES/vips.po b/locale/en/LC_MESSAGES/vips.po index 991f385..4d713ab 100644 --- a/locale/en/LC_MESSAGES/vips.po +++ b/locale/en/LC_MESSAGES/vips.po @@ -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:591 exercises/Exercise.php:612 +#: exercises/Exercise.php:585 exercises/Exercise.php:606 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:550 exercises/Exercise.php:572 +#: exercises/Exercise.php:544 exercises/Exercise.php:566 msgid "Unbekannter Aufgabentyp: " msgstr "Unknown task type: " -- GitLab