release 0.7.1 _ Fix php < 8 _ thanks @Gvx- _ closes #5
parent
166ac1b00e
commit
06793ce4b4
|
@ -18,7 +18,7 @@ $this->registerModule(
|
||||||
'improve',
|
'improve',
|
||||||
'Tiny tools to fix things for module devs',
|
'Tiny tools to fix things for module devs',
|
||||||
'Jean-Christian Denis and contributors',
|
'Jean-Christian Denis and contributors',
|
||||||
'0.7',
|
'0.7.1',
|
||||||
[
|
[
|
||||||
'requires' => [['core', '2.19']],
|
'requires' => [['core', '2.19']],
|
||||||
'permissions' => null,
|
'permissions' => null,
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
<modules xmlns:da="http://dotaddict.org/da/">
|
<modules xmlns:da="http://dotaddict.org/da/">
|
||||||
<module id="improve">
|
<module id="improve">
|
||||||
<name>improve</name>
|
<name>improve</name>
|
||||||
<version>0.7</version>
|
<version>0.7.1</version>
|
||||||
<author>Jean-Christian Denis and contributors</author>
|
<author>Jean-Christian Denis and contributors</author>
|
||||||
<desc>Tiny tools to fix things for module devs</desc>
|
<desc>Tiny tools to fix things for module devs</desc>
|
||||||
<file>https://github.com/JcDenis/improve/releases/download/v0.7/plugin-improve.zip</file>
|
<file>https://github.com/JcDenis/improve/releases/download/v0.7.1/plugin-improve.zip</file>
|
||||||
<da:dcmin>2.19</da:dcmin>
|
<da:dcmin>2.19</da:dcmin>
|
||||||
<da:details>https://github.com/JcDenis/improve</da:details>
|
<da:details>https://github.com/JcDenis/improve</da:details>
|
||||||
<da:support>https://github.com/JcDenis/improve</da:support>
|
<da:support>https://github.com/JcDenis/improve</da:support>
|
||||||
|
|
|
@ -295,7 +295,13 @@ class Improve
|
||||||
return $this->core->adminurl->get('admin.plugin.improve', $params, '&');
|
return $this->core->adminurl->get('admin.plugin.improve', $params, '&');
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function cleanExtensions(string|array $in): array
|
/**
|
||||||
|
* Check and clean file extension
|
||||||
|
*
|
||||||
|
* @param string|array $in Extension(s) to clean
|
||||||
|
* @return array Cleaned extension(s)
|
||||||
|
*/
|
||||||
|
public static function cleanExtensions($in): array
|
||||||
{
|
{
|
||||||
$out = [];
|
$out = [];
|
||||||
if (!is_array($in)) {
|
if (!is_array($in)) {
|
||||||
|
@ -405,7 +411,7 @@ class ImproveDefinition
|
||||||
*
|
*
|
||||||
* @return boolean Success
|
* @return boolean Success
|
||||||
*/
|
*/
|
||||||
private function registerModule(string $name, string $desc, string $author, string $version, string|array $properties = []): bool // @phpstan-ignore-line
|
private function registerModule(string $name, string $desc, string $author, string $version, $properties = []): bool // @phpstan-ignore-line
|
||||||
{
|
{
|
||||||
if (!is_array($properties)) {
|
if (!is_array($properties)) {
|
||||||
$args = func_get_args();
|
$args = func_get_args();
|
||||||
|
|
Loading…
Reference in New Issue