fix imdb class construct

This commit is contained in:
xiaomlove
2021-01-07 21:57:37 +08:00
parent 86f364af9d
commit 5d68fc2057
8 changed files with 14 additions and 14 deletions

View File

@@ -37,7 +37,7 @@ class imdb_config {
* configuration data here.
* @constructor imdb_config
*/
function imdb_config(){
function __construct(){
// protocol prefix
$this->protocol_prefix = "http://";
// the imdb server to use.
@@ -80,7 +80,7 @@ require_once ("HTTP/Request2.php");
class IMDB_Request extends HTTP_Request2
{
function IMDB_Request($url){
function __construct($url){
parent::__construct($url);
if ( PROXY != ""){
$this->setConfig(array('proxy_host' => PROXY, 'proxy_port' => PROXY_PORT));