mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +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;
|
||||
}
|
||||
|
||||
final protected function addJsonHook(string $sActionName, string $sFunctionName) : self
|
||||
final protected function addJsonHook(string $sActionName, string $sFunctionName = '') : self
|
||||
{
|
||||
if ($this->oPluginManager) {
|
||||
$this->oPluginManager->AddAdditionalJsonAction($sActionName, array($this, $sFunctionName));
|
||||
$this->oPluginManager->AddAdditionalJsonAction($sActionName, array($this, $sFunctionName ?: $sActionName));
|
||||
}
|
||||
|
||||
return $this;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue