X-Git-Url: http://git.cyclocoop.org/?p=lhc%2Fweb%2Fclavette_www.git;a=blobdiff_plain;f=www%2Fecrire%2Finc%2Fauth.php;h=c4b6f205386e99570f8842cbb43a8ae9fa099027;hp=be9e70606b88c0b5c981aad501d3965751ef3637;hb=cc641eb476987612f6d6df1a5417c1c5582a8ab8;hpb=7d84a490677fb716a1fd4df260f8eab35f6a8506 diff --git a/www/ecrire/inc/auth.php b/www/ecrire/inc/auth.php index be9e706..c4b6f20 100644 --- a/www/ecrire/inc/auth.php +++ b/www/ecrire/inc/auth.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * Copyright (c) 2001-2016 * * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * * * * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * @@ -325,9 +325,18 @@ function auth_administrer($fonction,$args,$defaut=false){ if ($auth = charger_fonction($auth_methode,'auth',true) AND function_exists($f="auth_{$auth_methode}_$fonction") ) - return call_user_func_array($f, $args); + $res = call_user_func_array($f, $args); else - return $defaut; + $res = $defaut; + $res = pipeline('auth_administrer',array( + 'args' => array( + 'fonction' => $fonction, + 'methode' => $auth_methode, + 'args' => $args + ), + 'data' => $res + )); + return $res; } /**