mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Merge remote-tracking branch 'brunoais/ticket/10575' into develop
* brunoais/ticket/10575: [ticket/10575] Adding public visibility to the methods. [ticket/10575] Fixing non-static access to static functions get_instance
This commit is contained in:
commit
8bc5e2ca5a
6 changed files with 6 additions and 6 deletions
|
@ -25,7 +25,7 @@ class phpbb_captcha_factory
|
||||||
/**
|
/**
|
||||||
* return an instance of class $name in file $name_plugin.php
|
* return an instance of class $name in file $name_plugin.php
|
||||||
*/
|
*/
|
||||||
function get_instance($name)
|
public static function get_instance($name)
|
||||||
{
|
{
|
||||||
global $phpbb_root_path, $phpEx;
|
global $phpbb_root_path, $phpEx;
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,7 @@ class phpbb_captcha_gd extends phpbb_default_captcha
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_instance()
|
public static function get_instance()
|
||||||
{
|
{
|
||||||
$instance = new phpbb_captcha_gd();
|
$instance = new phpbb_captcha_gd();
|
||||||
return $instance;
|
return $instance;
|
||||||
|
|
|
@ -39,7 +39,7 @@ class phpbb_captcha_gd_wave extends phpbb_default_captcha
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_instance()
|
public static function get_instance()
|
||||||
{
|
{
|
||||||
return new phpbb_captcha_gd_wave();
|
return new phpbb_captcha_gd_wave();
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,7 @@ class phpbb_captcha_nogd extends phpbb_default_captcha
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_instance()
|
public static function get_instance()
|
||||||
{
|
{
|
||||||
$instance = new phpbb_captcha_nogd();
|
$instance = new phpbb_captcha_nogd();
|
||||||
return $instance;
|
return $instance;
|
||||||
|
|
|
@ -98,7 +98,7 @@ class phpbb_captcha_qa
|
||||||
/**
|
/**
|
||||||
* API function
|
* API function
|
||||||
*/
|
*/
|
||||||
function get_instance()
|
public static function get_instance()
|
||||||
{
|
{
|
||||||
$instance = new phpbb_captcha_qa();
|
$instance = new phpbb_captcha_qa();
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,7 @@ class phpbb_recaptcha extends phpbb_default_captcha
|
||||||
$this->response = request_var('recaptcha_response_field', '');
|
$this->response = request_var('recaptcha_response_field', '');
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_instance()
|
public static function get_instance()
|
||||||
{
|
{
|
||||||
$instance = new phpbb_recaptcha();
|
$instance = new phpbb_recaptcha();
|
||||||
return $instance;
|
return $instance;
|
||||||
|
|
Loading…
Add table
Reference in a new issue