mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 16:37:02 +03: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
|
public function Hash() : string
|
||||||
{
|
{
|
||||||
return \md5(\array_reduce($this->aPlugins, function($sResult, $oPlugin){
|
return \md5(
|
||||||
return $sResult . "|{$oPlugin->Hash()}";
|
\array_reduce($this->aPlugins, function($sResult, $oPlugin){
|
||||||
}, APP_VERSION));
|
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
|
public function HaveJs(bool $bAdminScope = false) : bool
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue