]> git.mxchange.org Git - friendica.git/commitdiff
add 'loggin_out' hook
authorFabio Comuni <fabrix.xm@gmail.com>
Mon, 12 Mar 2012 14:58:59 +0000 (15:58 +0100)
committerFabio Comuni <fabrix.xm@gmail.com>
Mon, 12 Mar 2012 14:58:59 +0000 (15:58 +0100)
include/auth.php

index fc52684e64b183d8a20dd746317e0d9ef49032f9..f2975c4c6cc91bc7906e3c74b6626821df635202 100755 (executable)
@@ -24,7 +24,7 @@ if((isset($_SESSION)) && (x($_SESSION,'authenticated')) && ((! (x($_POST,'auth-p
        if(((x($_POST,'auth-params')) && ($_POST['auth-params'] === 'logout')) || ($a->module === 'logout')) {
        
                // process logout request
-
+               call_hooks("logging_out");
                nuke_session();
                info( t('Logged out.') . EOL);
                goaway(z_root());