Permalink
Browse files

- Global variables need to be defined before assigning values.

  • Loading branch information...
1 parent 9f75aa9 commit db0c17f70671616f1d42103de22210a96ea6c073 Bart Teeuwisse committed with dustinwhittle Nov 30, 2009
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"]);

0 comments on commit db0c17f

Please sign in to comment.