mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-08 00:47:04 +03:00
Make addJsonHook() $sFunctionName param optional
This commit is contained in:
parent
44ddb2d78e
commit
603d48f739
1 changed files with 2 additions and 2 deletions
|
|
@ -200,10 +200,10 @@ abstract class AbstractPlugin
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
final protected function addJsonHook(string $sActionName, string $sFunctionName) : self
|
final protected function addJsonHook(string $sActionName, string $sFunctionName = '') : self
|
||||||
{
|
{
|
||||||
if ($this->oPluginManager) {
|
if ($this->oPluginManager) {
|
||||||
$this->oPluginManager->AddAdditionalJsonAction($sActionName, array($this, $sFunctionName));
|
$this->oPluginManager->AddAdditionalJsonAction($sActionName, array($this, $sFunctionName ?: $sActionName));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue