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')
|
if(\Zotlabs\Lib\System::get_server_role() !== 'pro')
|
||||||
return 'aes256cbc';
|
return 'aes256cbc';
|
||||||
|
|
||||||
|
$x = [ 'methods' => $methods, 'result' => '' ];
|
||||||
|
call_hooks('zot_best_algorithm',$x);
|
||||||
|
if($x['result'])
|
||||||
|
return $x['result'];
|
||||||
|
|
||||||
if($methods) {
|
if($methods) {
|
||||||
$x = explode(',',$methods);
|
$x = explode(',',$methods);
|
||||||
if($x) {
|
if($x) {
|
||||||
|
Reference in New Issue
Block a user