Skip to content

Commit 33c8685

Browse files
authored
Merge pull request #1 from Lpsd/master
Fix mta_sdk.php constructor
2 parents 7e6d322 + 9632073 commit 33c8685

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mta_sdk.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ class Element
211211
{
212212
var $id;
213213

214-
function Element($id)
214+
function __construct($id)
215215
{
216216
$this->id = $id;
217217
}
@@ -228,7 +228,7 @@ class Resource
228228
var $name;
229229
private $server;
230230

231-
function Resource($name, $server)
231+
function __construct($name, $server)
232232
{
233233
$this->name = $name;
234234
$this->server = $server;
@@ -256,4 +256,4 @@ function call ( $function )
256256
return $this->server->callFunction ( $this->name, $function, $val );
257257
}
258258
}
259-
?>
259+
?>

0 commit comments

Comments
 (0)