[ticket/11157] static public is the currently approved order.

PHPBB3-11157
This commit is contained in:
Oleg Pudeyev 2012-10-29 14:54:54 -04:00
parent 14a6e5ec73
commit d602f13d7f
5 changed files with 11 additions and 11 deletions

View file

@ -55,7 +55,7 @@ class phpbb_captcha_gd extends phpbb_default_captcha
return $instance; return $instance;
} }
public static function is_available() static public function is_available()
{ {
global $phpbb_root_path, $phpEx; global $phpbb_root_path, $phpEx;
@ -80,7 +80,7 @@ class phpbb_captcha_gd extends phpbb_default_captcha
return true; return true;
} }
public static function get_name() static public function get_name()
{ {
return 'CAPTCHA_GD'; return 'CAPTCHA_GD';
} }

View file

@ -44,7 +44,7 @@ class phpbb_captcha_gd_wave extends phpbb_default_captcha
return new phpbb_captcha_gd_wave(); return new phpbb_captcha_gd_wave();
} }
public static function is_available() static public function is_available()
{ {
global $phpbb_root_path, $phpEx; global $phpbb_root_path, $phpEx;
@ -61,7 +61,7 @@ class phpbb_captcha_gd_wave extends phpbb_default_captcha
return can_load_dll('gd'); return can_load_dll('gd');
} }
public static function get_name() static public function get_name()
{ {
return 'CAPTCHA_GD_3D'; return 'CAPTCHA_GD_3D';
} }

View file

@ -45,12 +45,12 @@ class phpbb_captcha_nogd extends phpbb_default_captcha
return $instance; return $instance;
} }
public static function is_available() static public function is_available()
{ {
return true; return true;
} }
public static function get_name() static public function get_name()
{ {
return 'CAPTCHA_NO_GD'; return 'CAPTCHA_NO_GD';
} }

View file

@ -108,7 +108,7 @@ class phpbb_captcha_qa
/** /**
* See if the captcha has created its tables. * See if the captcha has created its tables.
*/ */
public static function is_installed() static public function is_installed()
{ {
global $db, $phpbb_root_path, $phpEx; global $db, $phpbb_root_path, $phpEx;
@ -124,7 +124,7 @@ class phpbb_captcha_qa
/** /**
* API function - for the captcha to be available, it must have installed itself and there has to be at least one question in the board's default lang * API function - for the captcha to be available, it must have installed itself and there has to be at least one question in the board's default lang
*/ */
public static function is_available() static public function is_available()
{ {
global $config, $db, $phpbb_root_path, $phpEx, $user; global $config, $db, $phpbb_root_path, $phpEx, $user;
@ -157,7 +157,7 @@ class phpbb_captcha_qa
/** /**
* API function * API function
*/ */
public static function get_name() static public function get_name()
{ {
return 'CAPTCHA_QA'; return 'CAPTCHA_QA';
} }

View file

@ -60,7 +60,7 @@ class phpbb_recaptcha extends phpbb_default_captcha
return $instance; return $instance;
} }
public static function is_available() static public function is_available()
{ {
global $config, $user; global $config, $user;
$user->add_lang('captcha_recaptcha'); $user->add_lang('captcha_recaptcha');
@ -75,7 +75,7 @@ class phpbb_recaptcha extends phpbb_default_captcha
return true; return true;
} }
public static function get_name() static public function get_name()
{ {
return 'CAPTCHA_RECAPTCHA'; return 'CAPTCHA_RECAPTCHA';
} }