Fix photos on banana in xnet
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 4 Oct 2007 22:02:45 +0000 (00:02 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 4 Oct 2007 22:02:45 +0000 (00:02 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
include/banana/hooks.inc.php

index f996497..46aa962 100644 (file)
@@ -194,7 +194,8 @@ function hook_getXFace($headers)
             return false;
         }
     }
-    pl_redirect('photo/' . $login);
+    global $globals;
+    http_redirect($global->baseurl . '/photo/' . $login);
 }
 
 function hook_makeJs($src)