mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-02-26 07:45:23 +08:00
Improved plugins hash when there are changes
This commit is contained in:
parent
200e00e2d6
commit
721edc5e57
1 changed files with 7 additions and 3 deletions
|
@ -169,9 +169,13 @@ class Manager
|
|||
|
||||
public function Hash() : string
|
||||
{
|
||||
return \md5(\array_reduce($this->aPlugins, function($sResult, $oPlugin){
|
||||
return $sResult . "|{$oPlugin->Hash()}";
|
||||
}, APP_VERSION));
|
||||
return \md5(
|
||||
\array_reduce($this->aPlugins, function($sResult, $oPlugin){
|
||||
return $sResult . "|{$oPlugin->Hash()}";
|
||||
}, APP_VERSION)
|
||||
.implode('',$this->aJs[1]).implode('',$this->aJs[0])
|
||||
.implode('',$this->aCss[1]).implode('',$this->aCss[0])
|
||||
);
|
||||
}
|
||||
|
||||
public function HaveJs(bool $bAdminScope = false) : bool
|
||||
|
|
Loading…
Reference in a new issue