Browse Source

Changing $_configuration['append'] to api_get_path(WEB_CODE_PATH)

Julio Montoya 15 years ago
parent
commit
db4d735ae6
1 changed files with 2 additions and 3 deletions
  1. 2 3
      whoisonline.php

+ 2 - 3
whoisonline.php

@@ -106,9 +106,8 @@ if ($_GET['chatid'] != '') {
 	if ($_GET['chatid'] == strval(intval($_GET['chatid']))) {
 		$sql = "update $track_user_table set chatcall_user_id = '".Database::escape_string($_user['user_id'])."', chatcall_date = '".Database::escape_string($time)."', chatcall_text = '' where (user_id = ".(int)Database::escape_string($chatid).")";
 		$result = Database::query($sql);
-		//redirect caller to chat
-		
-		header("Location: ".$_configuration['code_append']."chat/chat.php?".api_get_cidreq()."&origin=whoisonline&target=".Security::remove_XSS($chatid));
+		//redirect caller to chat		
+		header("Location: ".api_get_path(WEB_CODE_PATH)."chat/chat.php?".api_get_cidreq()."&origin=whoisonline&target=".Security::remove_XSS($chatid));
 		exit;
 	}
 }