From 10cc0fdae7bfcbc5b578ec729d4143b1e8a0d2d2 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Tue, 17 Feb 2009 10:14:23 -0500 Subject: [PATCH] Fix callback name --- framework/Service_Facebook/lib/Horde/Service/Facebook.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/framework/Service_Facebook/lib/Horde/Service/Facebook.php b/framework/Service_Facebook/lib/Horde/Service/Facebook.php index 843469960..9b0826635 100644 --- a/framework/Service_Facebook/lib/Horde/Service/Facebook.php +++ b/framework/Service_Facebook/lib/Horde/Service/Facebook.php @@ -304,17 +304,18 @@ class Horde_Service_Facebook } /** - * TODO: Use an overlay or a js popup instead of redirecting...or at least - * make this an option we can pass in $context. + * Either redirect to the FB login page, or call a callback function to let + * the client code handle the redirect. * - * @param $url - * @return unknown_type + * @param string $url The URL to redirect to. + * + * @return void */ protected function _redirect($url) { // If we have a callback, call it then return. if (!empty($this->_context['login_redirect_callback'])) { - call_user_func($this->_url_callback, $url) + call_user_func($this->_context['login_redirect_callback'], $url); return; } -- 2.11.0