opps stage all files is better
parent
220042943f
commit
d42d4ac14d
|
@ -1,10 +1,10 @@
|
|||
<modules xmlns:da="http://dotaddict.org/da/">
|
||||
<module id="improve">
|
||||
<name>improve</name>
|
||||
<version>0.1</version>
|
||||
<version>0.1.1</version>
|
||||
<author>Jean-Christian Denis and contributors</author>
|
||||
<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:details>https://github.com/JcDenis/improve</da:details>
|
||||
<da:support>https://github.com/JcDenis/improve</da:support>
|
||||
|
|
|
@ -101,7 +101,7 @@ abstract class ImproveAction
|
|||
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];
|
||||
foreach($preferences as $k => $v) {
|
||||
|
@ -131,7 +131,8 @@ abstract class ImproveAction
|
|||
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue