add plugin hook to zot_best_algorithm()

This commit is contained in:
zotlabs 2016-12-13 18:43:47 -08:00
parent f111c5c325
commit 66a53c6d3c

View File

@ -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) {