diff --git a/client/Gallery3.php b/client/Gallery3.php index 629a114d..f732394c 100644 --- a/client/Gallery3.php +++ b/client/Gallery3.php @@ -49,7 +49,7 @@ class Gallery3 { * @param string authentication token * @return object Gallery3 */ - public function factory($url=null, $token=null) { + static function factory($url=null, $token=null) { $obj = new Gallery3(); $obj->token = $token; $obj->url = $url;