Version 0.1.1
English
Compliance and packaging fixes reported against the v0.1.0 package (Moodle plugins directory review + CLI install check):
- Fix (install-breaking):
db/messages.phpusedMESSAGE_DEFAULT_LOGGEDIN/MESSAGE_DEFAULT_LOGGEDOFF, deprecated since Moodle 4.0 (MDL-73284) and removed in newer Moodle versions, soadmin/cli/upgrade.phpaborted withUndefined constant "MESSAGE_DEFAULT_LOGGEDIN". Switched toMESSAGE_DEFAULT_ENABLED, the pattern core plugins already use. - Fix (invalid build artifact):
amd/build/*.min.jswere flat, unminified copies of the sources — invalid per the Moodle JS module build process. Rebuilt with the realgrunt amdpipeline (Rollup + terser), including source maps. No behaviour change (verified with the full Behat suite in a real browser). - Fix (licensing/IP compliance): added a
LICENSEfile (verbatim GPL-3.0 text) at the plugin root — every source file already declared "GNU GPL v3 or later", but the package had no actual license file.
See CHANGELOG.md for full detail.
Installation
Download coursemail-v0.1.1.zip from the Assets section below (NOT GitHub's automatic "Source code (zip)", which creates a wrongly-named folder and won't install cleanly).
Then choose one:
- Via the browser: Site administration → Plugins → Install plugins → upload the zip.
- Manual: unzip and copy the
coursemail/folder intomod/in your Moodle install, then visit Site administration to complete the database upgrade.
Requirements
- Moodle 4.1 or higher
- PHP 7.4 – 8.1
Español
Correcciones de cumplimiento y empaquetado reportadas sobre el paquete v0.1.0 (revisión del directorio de plugins de Moodle + comprobación de instalación por CLI):
- Fix (rompía la instalación):
db/messages.phpusabaMESSAGE_DEFAULT_LOGGEDIN/MESSAGE_DEFAULT_LOGGEDOFF, deprecadas desde Moodle 4.0 (MDL-73284) y eliminadas en versiones más recientes, por lo queadmin/cli/upgrade.phpabortaba conUndefined constant "MESSAGE_DEFAULT_LOGGEDIN". Se sustituyeron porMESSAGE_DEFAULT_ENABLED, el patrón que ya usan los plugins del core. - Fix (artefacto de build inválido):
amd/build/*.min.jseran copias planas sin minificar de las fuentes — inválido según el proceso de build de JS de Moodle. Reconstruidos con el pipeline realgrunt amd(Rollup + terser), incluyendo sourcemaps. Sin cambios de comportamiento (verificado con la suite Behat completa en navegador real). - Fix (cumplimiento de licencia/IP): se añadió un fichero
LICENSE(texto GPL-3.0 íntegro) en la raíz del plugin — todos los ficheros fuente ya declaraban "GNU GPL v3 or later", pero el paquete no incluía un fichero de licencia real.
Ver CHANGELOG.md para el detalle completo.
Instalación
Descarga coursemail-v0.1.1.zip de la sección Assets de abajo (NO el "Source code (zip)" automático de GitHub, que crea una carpeta con nombre incorrecto y no instala limpio).
Después, elige una opción:
- Por el navegador: Administración del sitio → Plugins → Instalar plugins → sube el zip.
- Manual: descomprime y copia la carpeta
coursemail/dentro demod/de tu Moodle; luego visita Administración del sitio para completar la actualización de la BD.
Requisitos
- Moodle 4.1 o superior
- PHP 7.4 – 8.1