From 8be45ae84effcafb5a41173a96e698745d1875e2 Mon Sep 17 00:00:00 2001 From: jmontoyaa Date: Mon, 26 Mar 2018 08:43:10 +0200 Subject: [PATCH] Minor - format code, update plugin lang var --- plugin/test2pdf/lang/spanish.php | 2 +- plugin/test2pdf/src/test2pdf.lib.php | 2 +- plugin/test2pdf/src/test2pdf_plugin.class.php | 2 +- plugin/test2pdf/src/view-pdf.php | 3 --- 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/plugin/test2pdf/lang/spanish.php b/plugin/test2pdf/lang/spanish.php index 37033d7ec5..de33386382 100644 --- a/plugin/test2pdf/lang/spanish.php +++ b/plugin/test2pdf/lang/spanish.php @@ -6,7 +6,7 @@ $strings['enable_plugin'] = "Activar plugin"; $strings['ViewExercises'] = "Ver ejercicios"; $strings['NoExercise'] = "Sin ejercicios creados en el curso"; $strings['Exercise'] = "Ejercicio"; -$strings['DownloadOnlyQuestion'] = "Descargar cuestiones"; +$strings['DownloadOnlyQuestion'] = "Descargar preguntas"; $strings['DownloadOnlyAnswer'] = "Descargar respuestas"; $strings['DownloadAll'] = "Descargar todo"; $strings['PluginDisabledFromAdminPanel'] = "La herramienta está deshabilitada desde la administración"; diff --git a/plugin/test2pdf/src/test2pdf.lib.php b/plugin/test2pdf/src/test2pdf.lib.php index 784941240b..ff6546f8bc 100644 --- a/plugin/test2pdf/src/test2pdf.lib.php +++ b/plugin/test2pdf/src/test2pdf.lib.php @@ -37,7 +37,7 @@ $letters = [ /** * List exercises. * - * @param int $courseId Course ID + * @param int $courseId Course ID * @param int $sessionId Session ID * * @throws Exception diff --git a/plugin/test2pdf/src/test2pdf_plugin.class.php b/plugin/test2pdf/src/test2pdf_plugin.class.php index 2162dd00e8..8f4d8f83ee 100644 --- a/plugin/test2pdf/src/test2pdf_plugin.class.php +++ b/plugin/test2pdf/src/test2pdf_plugin.class.php @@ -55,7 +55,7 @@ class Test2pdfPlugin extends Plugin */ public function uninstall() { - //Deleting course settings + // Deleting course settings. $this->uninstall_course_fields_in_all_courses($this->course_settings); $this->manageTab(false); } diff --git a/plugin/test2pdf/src/view-pdf.php b/plugin/test2pdf/src/view-pdf.php index 6a72600cc2..1aaf727b5f 100644 --- a/plugin/test2pdf/src/view-pdf.php +++ b/plugin/test2pdf/src/view-pdf.php @@ -5,9 +5,6 @@ * * @package chamilo.plugin.test2pdf */ -/** - * Initialization. - */ require_once '../config.php'; api_protect_course_script(true);