Gallery3::factory should be defined as static.
This commit is contained in:
parent
7558feb6ca
commit
8680715874
|
@ -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;
|
||||
|
|
Reference in New Issue
Block a user