opps stage all files is better
This commit is contained in:
parent
220042943f
commit
d42d4ac14d
2 changed files with 5 additions and 4 deletions
|
@ -1,10 +1,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.1</version>
|
<version>0.1.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.1/plugin-improve.zip</file>
|
<file>https://github.com/JcDenis/improve/releases/download/v0.1.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>
|
||||||
|
|
|
@ -101,7 +101,7 @@ abstract class ImproveAction
|
||||||
return $this->preferences[$preference] ?? null;
|
return $this->preferences[$preference] ?? null;
|
||||||
}
|
}
|
||||||
|
|
||||||
final protected function setPreferences $preference, $value = null)
|
final protected function setPreferences($preference, $value = null)
|
||||||
{
|
{
|
||||||
$preferences = is_array($preference) ? $preference : [$preference => $value];
|
$preferences = is_array($preference) ? $preference : [$preference => $value];
|
||||||
foreach($preferences as $k => $v) {
|
foreach($preferences as $k => $v) {
|
||||||
|
@ -131,7 +131,8 @@ abstract class ImproveAction
|
||||||
|
|
||||||
public static function create(arrayObject $o, dcCore $core)
|
public static function create(arrayObject $o, dcCore $core)
|
||||||
{
|
{
|
||||||
$o->append(new ${get_called_class()}($core));
|
$c = get_called_class();
|
||||||
|
$o->append(new $c($core));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function configure(string $redirect_url): ?string
|
public function configure(string $redirect_url): ?string
|
||||||
|
|
Loading…
Reference in a new issue