Browse Source

Minor fix : use param in cas_logout()

Kevin LEVRON 11 years ago
parent
commit
1f8fb85d54
1 changed files with 2 additions and 2 deletions
  1. 2 2
      main/auth/cas/authcas.php

+ 2 - 2
main/auth/cas/authcas.php

@@ -163,7 +163,7 @@ function cas_is_authenticated()
  * Logs out the user of the cas
  * The user MUST be logged in with cas to use this function
  *
- * @param $uinfo array user info
+ * @param $uinfo array user info (not needed)
  * @param $location string redirect url
  *
  * @see online_logout()
@@ -181,7 +181,7 @@ function cas_logout($uinfo=null, $location=null)
     if (!isset($location))
         $location = api_get_path(WEB_PATH);
 
-    phpCAS::logoutWithRedirectService(api_get_path(WEB_PATH));
+    phpCAS::logoutWithRedirectService($location);
 }
 
 ?>