From: Michael J. Rubinsky Date: Tue, 17 Feb 2009 15:14:23 +0000 (-0500) Subject: Fix callback name X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=10cc0fdae7bfcbc5b578ec729d4143b1e8a0d2d2;p=horde.git Fix callback name --- 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; }