From c7b954a538188eaebb5bbcd2dee23b6406dbac8b Mon Sep 17 00:00:00 2001 From: Michael Milette Date: Mon, 23 Oct 2023 06:49:54 -0400 Subject: [PATCH] Release 1.3.1. --- CHANGELOG.md | 3 ++- README.md | 2 +- classes/local_contact.php | 9 +++++++-- version.php | 4 ++-- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e71453..0c6f05d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,12 +1,13 @@ # Change Log All notable changes to this project will be documented in this file. -## [1.3.0] - 2023-10-20 +## [1.3.1] - 2023-10-23 ### Added - Added support for attachments. - Added configurable setting to enable/disable attachments. Default is disabled. ### Updated - Compatible with Moodle up to v4.3. +- Compatible with PHP 5.6 to 8.2. ## [1.2.4] - 2022-05-07 ### Updated diff --git a/README.md b/README.md index 96342a6..143022e 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Local Contact Form plugin for Moodle ==================================== -![PHP](https://img.shields.io/badge/PHP-v5.6%20%2F%20v7.0%20%2F%20v7.1%20%2F%207.2%20%2F%207.3%20%2F%207.4%20%2F%208.1-blue.svg) +![PHP](https://img.shields.io/badge/PHP-v5.6%20%2F%20v7.0%20%2F%20v7.1%20%2F%207.2%20%2F%207.3%20%2F%207.4%20%2F%208.1%20%2F%208.2-blue.svg) ![Moodle](https://img.shields.io/badge/Moodle-v3.0%20to%20v4.3-orange.svg) [![GitHub Issues](https://img.shields.io/github/issues/michael-milette/moodle-local_contact.svg)](https://github.com/michael-milette/moodle-local_contact/issues) [![Contributions welcome](https://img.shields.io/badge/contributions-welcome-green.svg)](#contributing) diff --git a/classes/local_contact.php b/classes/local_contact.php index d81fb71..5536ada 100644 --- a/classes/local_contact.php +++ b/classes/local_contact.php @@ -29,11 +29,16 @@ * @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class local_contact { - /** + public $fromname; + public $fromemail; + public $isspambot; + public $errmsg; + +/** * Class constructor. Receives and validates information received through a * web form submission. * - * @return True if the information received passes our spambot detection. False if it fails. + * @return boolean True if the information received passes our spambot detection. False if it fails. */ public function __construct() { global $CFG; diff --git a/version.php b/version.php index 50d0b2a..4cf1b81 100644 --- a/version.php +++ b/version.php @@ -26,8 +26,8 @@ defined('MOODLE_INTERNAL') || die(); $plugin->component = 'local_contact'; // To check on upgrade, that module sits in correct place. -$plugin->version = 2023102000; // The current module version (Date: YYYYMMDDXX). +$plugin->version = 2023102301; // The current module version (Date: YYYYMMDDXX). $plugin->requires = 2015111600; // Requires Moodle version 3.0. -$plugin->release = '1.3.0'; +$plugin->release = '1.3.1'; $plugin->maturity = MATURITY_STABLE; $plugin->cron = 0;