Browse Source

A very small addition for chaining methods, like: $curl->get_url_data('http://www.simplemachines.org')->result('body');

Berat Doğan 12 năm trước cách đây
mục cha
commit
c051e1d5c6
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      Sources/Class-CurlFetchWeb.php

+ 2 - 0
Sources/Class-CurlFetchWeb.php

@@ -87,6 +87,8 @@ class curl_fetch_web_data
 		// set the options and get it
 		// set the options and get it
 		$this->set_options();
 		$this->set_options();
 		$this->curl_request(str_replace(' ', '%20', $url));
 		$this->curl_request(str_replace(' ', '%20', $url));
+
+		return $this;
 	}
 	}
 
 
 	/**
 	/**