add plugin hook to zot_best_algorithm()
This commit is contained in:
parent
f111c5c325
commit
66a53c6d3c
@ -169,6 +169,11 @@ function zot_best_algorithm($methods) {
|
||||
if(\Zotlabs\Lib\System::get_server_role() !== 'pro')
|
||||
return 'aes256cbc';
|
||||
|
||||
$x = [ 'methods' => $methods, 'result' => '' ];
|
||||
call_hooks('zot_best_algorithm',$x);
|
||||
if($x['result'])
|
||||
return $x['result'];
|
||||
|
||||
if($methods) {
|
||||
$x = explode(',',$methods);
|
||||
if($x) {
|
||||
|
Reference in New Issue
Block a user