diff options
| author | Tristan Darricau <github@nicofuma.fr> | 2014-08-10 15:10:14 +0200 |
|---|---|---|
| committer | Tristan Darricau <github@nicofuma.fr> | 2014-08-11 01:16:58 +0200 |
| commit | fa2ac1f27126292a24aa33136b2d3a7f1832ea47 (patch) | |
| tree | 2a40bf7908771f6d889718753c25f5b39c252873 /phpBB/phpbb/captcha/plugins/captcha_abstract.php | |
| parent | 76633544ee6084e61641ec423cd0480bb4b771c5 (diff) | |
| download | forums-fa2ac1f27126292a24aa33136b2d3a7f1832ea47.tar forums-fa2ac1f27126292a24aa33136b2d3a7f1832ea47.tar.gz forums-fa2ac1f27126292a24aa33136b2d3a7f1832ea47.tar.bz2 forums-fa2ac1f27126292a24aa33136b2d3a7f1832ea47.tar.xz forums-fa2ac1f27126292a24aa33136b2d3a7f1832ea47.zip | |
[ticket/11854] Use a set_name method instead of overriding get_service_name
PHPBB3-11854
Diffstat (limited to 'phpBB/phpbb/captcha/plugins/captcha_abstract.php')
| -rw-r--r-- | phpBB/phpbb/captcha/plugins/captcha_abstract.php | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/phpBB/phpbb/captcha/plugins/captcha_abstract.php b/phpBB/phpbb/captcha/plugins/captcha_abstract.php index 982798e464..24ed7f939d 100644 --- a/phpBB/phpbb/captcha/plugins/captcha_abstract.php +++ b/phpBB/phpbb/captcha/plugins/captcha_abstract.php @@ -27,6 +27,11 @@ abstract class captcha_abstract var $solved = 0; var $captcha_vars = false; + /** + * @var string name of the service. + */ + protected $service_name; + function init($type) { global $config, $db, $user; @@ -363,7 +368,20 @@ abstract class captcha_abstract /** * @return string the name of the service corresponding to the plugin */ - abstract function get_service_name(); + function get_service_name() + { + return $this->service_name; + } + + /** + * Set the name of the plugin + * + * @param string $name + */ + public function set_name($name) + { + $this->service_name = $name; + } /** * @return string the name of the class used to generate the captcha |
