diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/README.md b/README.md index 2b9b60f..b770055 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ activity, making it accessible only to users from specified IP addresses. * Author: Luuk Verhoeven, [ldesignmedia.nl](https://ldesignmedia.nl/) * Author: Vincent Cornelis, [ldesignmedia.nl](https://ldesignmedia.nl/) * Min. required: Moodle 4.0 -* Supports PHP: 7.4 +* Supports PHP: 7.3+ ![Moodle400](https://img.shields.io/badge/moodle-4.0-F98012.svg?logo=moodle) ![Moodle401](https://img.shields.io/badge/moodle-4.1-F98012.svg?logo=moodle) @@ -22,6 +22,7 @@ activity, making it accessible only to users from specified IP addresses. ![Moodle500](https://img.shields.io/badge/moodle-5.0-F98012.svg?logo=moodle) ![Moodle501](https://img.shields.io/badge/moodle-5.1-F98012.svg?logo=moodle) +![PHP7.3](https://img.shields.io/badge/PHP-7.3-777BB4.svg?logo=php) ![PHP7.4](https://img.shields.io/badge/PHP-7.4-777BB4.svg?logo=php) ![PHP8.0](https://img.shields.io/badge/PHP-8.0-777BB4.svg?logo=php) ![PHP8.1](https://img.shields.io/badge/PHP-8.1-777BB4.svg?logo=php) @@ -63,6 +64,6 @@ The GNU GENERAL PUBLIC LICENSE. Please see [License File](LICENSE) for more info Contributions are welcome and will be fully credited. We accept contributions via Pull Requests on Github. -## Changelog +### Changelog See [CHANGELOG.md](CHANGELOG.md) for a full list of changes. diff --git a/classes/condition.php b/classes/condition.php index 0c0d6f2..ce59a02 100644 --- a/classes/condition.php +++ b/classes/condition.php @@ -41,14 +41,14 @@ class condition extends \core_availability\condition { * * @var string */ - protected string $ipaddresses = ''; + protected $ipaddresses = ''; /** * Predefined IP address ranges. * * @var array */ - protected array $predefinedranges = []; + protected $predefinedranges = []; /** * condition constructor. diff --git a/environment.xml b/environment.xml index cff201b..dd3ab8f 100644 --- a/environment.xml +++ b/environment.xml @@ -1,6 +1,6 @@ - + diff --git a/version.php b/version.php index 75516ed..ee48b21 100644 --- a/version.php +++ b/version.php @@ -27,7 +27,7 @@ defined('MOODLE_INTERNAL') || die(); $plugin->component = 'availability_ipaddress'; -$plugin->version = 2026030300; +$plugin->version = 2026031800; $plugin->release = '5.1.0'; $plugin->requires = 2016120500; $plugin->maturity = MATURITY_STABLE;