Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

- Global variables need to be defined before assigning values.

  • Loading branch information...
commit db0c17f70671616f1d42103de22210a96ea6c073 1 parent 9f75aa9
Bart Teeuwisse authored dustinwhittle committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Yahoo.inc
View
4 lib/Yahoo.inc
@@ -63,6 +63,8 @@ define("YAHOO_YAP_SESSION_TYPE", "YAHOO_YAP_SESSION_TYPE");
define("YAHOO_OAUTH_RT_SESSION_TYPE", "YAHOO_OAUTH_RT_SESSION_TYPE");
define("YAHOO_OAUTH_AT_SESSION_TYPE", "YAHOO_OAUTH_AT_SESSION_TYPE");
+global $YahooConfig, $GLOBAL_YAHOO_SESSION, $GLOBAL_YAHOO_LOGGER_DEBUG, $GLOBAL_YAHOO_LOGGER_DEBUG_DESTINATION;
+
$YahooConfig = array(
"SOCIAL_WS_HOSTNAME" => "social.yahooapis.com",
"PRESENCE_WS_HOSTNAME" => "social.yahooapis.com",
@@ -77,8 +79,6 @@ $GLOBAL_YAHOO_SESSION = NULL;
$GLOBAL_YAHOO_LOGGER_DEBUG = false;
$GLOBAL_YAHOO_LOGGER_DEBUG_DESTINATION = "LOG";
-global $YahooConfig, $GLOBAL_YAHOO_SESSION, $GLOBAL_YAHOO_LOGGER_DEBUG, $GLOBAL_YAHOO_LOGGER_DEBUG_DESTINATION;
-
class YahooUtil {
function current_url() {
return sprintf("http://%s%s",$_SERVER["HTTP_HOST"],$_SERVER["REQUEST_URI"]);
Please sign in to comment.
Something went wrong with that request. Please try again.