Merge pull request #21 from oddnoc/fsockopen-port-correction

Specify port 80 for connecting to Google
This commit is contained in:
Will Rossiter 2012-09-27 19:40:06 -07:00
commit a20e84ca9b

View File

@ -221,7 +221,7 @@ class GoogleSitemap extends Controller {
* @return String Response text * @return String Response text
*/ */
protected static function send_ping($host, $path, $query) { protected static function send_ping($host, $path, $query) {
$socket = fsockopen($host, $port, $errno, $error); $socket = fsockopen($host, 80, $errno, $error);
if (!$socket) { if (!$socket) {
return $error; return $error;
} }