mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-03 14:37:02 +03:00
Small fixes
This commit is contained in:
parent
cc6626c374
commit
276e8c48e8
10 changed files with 67 additions and 39 deletions
|
|
@ -222,6 +222,23 @@ class Manager
|
|||
return $sResult;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param bool $bAdminScope = false
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function HaveJs($bAdminScope = false)
|
||||
{
|
||||
$bResult = false;
|
||||
|
||||
if ($this->bIsEnabled)
|
||||
{
|
||||
$bResult = $bAdminScope ? 0 < \count($this->aAdminJs) : 0 < \count($this->aJs);
|
||||
}
|
||||
|
||||
return $bResult;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param bool $bAdminScope = false
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue