Compare commits
No commits in common. "master" and "main" have entirely different histories.
13
CHANGELOG.md
13
CHANGELOG.md
@ -1,16 +1,3 @@
|
||||
myUrlHandlers 2023.11.27
|
||||
===========================================================
|
||||
* Require Dotclear 2.28
|
||||
* Require PHP 8.1
|
||||
* Try to fix an error on callable
|
||||
|
||||
myUrlHandlers 2023.10.23
|
||||
===========================================================
|
||||
* Require Dotclear 2.28
|
||||
* Require PHP 8.1
|
||||
* Fix typo
|
||||
* Fix repository branch
|
||||
|
||||
myUrlHandlers 2023.10.22
|
||||
===========================================================
|
||||
* Require Dotclear 2.28
|
||||
|
@ -1,7 +1,7 @@
|
||||
# README
|
||||
|
||||
[![Release](https://img.shields.io/badge/release-2023.11.27-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/myUrlHandlers/releases)
|
||||
![Date](https://img.shields.io/badge/date-2023.11.27-c44d58.svg)
|
||||
[![Release](https://img.shields.io/badge/release-2023.10.22-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/myUrlHandlers/releases)
|
||||
![Date](https://img.shields.io/badge/date-2023.10.22-c44d58.svg)
|
||||
[![Dotclear](https://img.shields.io/badge/dotclear-v2.28-137bbb.svg)](https://fr.dotclear.org/download)
|
||||
[![Dotaddict](https://img.shields.io/badge/dotaddict-official-9ac123.svg)](https://plugins.dotaddict.org/dc2/details/myUrlHandlers)
|
||||
[![License](https://img.shields.io/badge/license-GPL--2.0-ececec.svg)](https://git.dotclear.watch/JcDenis/myUrlHandlers/src/branch/master/LICENSE)
|
||||
@ -32,6 +32,7 @@ or you can add dashboard icon.
|
||||
* [Packages & details](https://git.dotclear.watch/JcDenis/myUrlHandlers/releases) (or on [Dotaddict](https://plugins.dotaddict.org/dc2/myUrlHandlers/alias))
|
||||
* [Sources & contributions](https://git.dotclear.watch/JcDenis/myUrlHandlers) (or on [GitHub](https://github.com/JcDenis/myUrlHandlers))
|
||||
* [Issues & security](https://git.dotclear.watch/JcDenis/myUrlHandlers/issues) (or on [GitHub](https://github.com/JcDenis/myUrlHandlers/issues))
|
||||
* [Discuss and help](https://forum.dotclear.org/viewtopic.php?id=40893)
|
||||
|
||||
## CONTRIBUTORS
|
||||
|
||||
|
@ -19,7 +19,7 @@ $this->registerModule(
|
||||
'URL handlers',
|
||||
'Change Dotclear URL handlers',
|
||||
'Alex Pirine and contributors',
|
||||
'2023.10.23',
|
||||
'2023.10.11',
|
||||
[
|
||||
'requires' => [['core', '2.28']],
|
||||
'permissions' => 'My',
|
||||
|
@ -2,10 +2,10 @@
|
||||
<modules xmlns:da="http://dotaddict.org/da/">
|
||||
<module id="myUrlHandlers">
|
||||
<name>URL handlers</name>
|
||||
<version>2023.11.27</version>
|
||||
<version>2023.10.22</version>
|
||||
<author>Alex Pirine and contributors</author>
|
||||
<desc>Change Dotclear URL handlers</desc>
|
||||
<file>https://git.dotclear.watch/JcDenis/myUrlHandlers/releases/download/v2023.11.27/plugin-myUrlHandlers.zip</file>
|
||||
<file>https://git.dotclear.watch/JcDenis/myUrlHandlers/releases/download/v2023.10.22/plugin-myUrlHandlers.zip</file>
|
||||
<da:dcmin>2.28</da:dcmin>
|
||||
<da:details>https://git.dotclear.watch/JcDenis/myUrlHandlers/src/branch/master/README.md</da:details>
|
||||
<da:support>https://git.dotclear.watch/JcDenis/myUrlHandlers/issues</da:support>
|
||||
|
@ -145,7 +145,7 @@ class Manage extends Process
|
||||
'<tr class="line">' .
|
||||
'<td class="nowrap minimal">' . Html::escapeHTML($name) . '</td>' .
|
||||
'<td>' .
|
||||
(new Input(['handlers[' . $name . ']']))->size(20)->maxlength(255)->value(Html::escapeHTML($url))->render() .
|
||||
(new Input(['handlers[' . $name . ']']))->size(20)->maxlenght(255)->value(Html::escapeHTML($url))->render() .
|
||||
'</td>' .
|
||||
'</tr>';
|
||||
}
|
||||
|
@ -27,18 +27,16 @@ class UrlDescriptor
|
||||
* @param string $id The ID
|
||||
* @param string $url The URL
|
||||
* @param string $representation The representation
|
||||
* @param mixed $handler The callback
|
||||
* @param ?callable $handler The callback
|
||||
*/
|
||||
public function __construct(
|
||||
public readonly string $id,
|
||||
public readonly string $url = '',
|
||||
public readonly string $representation = '',
|
||||
mixed $handler = null,
|
||||
?callable $handler = null,
|
||||
) {
|
||||
// As PHP does not support callable property type.
|
||||
if (is_callable($handler)) {
|
||||
$this->handler = $handler;
|
||||
}
|
||||
$this->handler = $handler;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user