Skip to content
Extraits de code Groupes Projets
Valider fc99a576 rédigé par cerdic's avatar cerdic
Parcourir les fichiers

definir une methode d'auth par defaut si celle fournit est nulle

et ne pas echouer a son chargement
parent 75662116
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -306,7 +306,8 @@ function auth_trace($row, $date=null) ...@@ -306,7 +306,8 @@ function auth_trace($row, $date=null)
*/ */
function auth_administrer($fonction,$args,$defaut=false){ function auth_administrer($fonction,$args,$defaut=false){
$auth_methode = array_shift($args); $auth_methode = array_shift($args);
if ($auth = charger_fonction($auth_methode,'auth',false) $auth_methode = $auth_methode ? $auth_methode : 'spip'; // valeur par defaut au cas ou
if ($auth = charger_fonction($auth_methode,'auth',true)
AND function_exists($f="auth_{$auth_methode}_$fonction") AND function_exists($f="auth_{$auth_methode}_$fonction")
) )
return call_user_func_array($f, $args); return call_user_func_array($f, $args);
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter