mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 08:47:45 +02:00
[ticket/11854] Use a set_name method instead of overriding get_service_name
PHPBB3-11854
This commit is contained in:
@@ -34,6 +34,11 @@ class qa
|
||||
protected $table_captcha_answers;
|
||||
protected $table_qa_confirm;
|
||||
|
||||
/**
|
||||
* @var string name of the service.
|
||||
*/
|
||||
protected $service_name;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
@@ -157,11 +162,21 @@ class qa
|
||||
}
|
||||
|
||||
/**
|
||||
* API function
|
||||
* @return string the name of the service corresponding to the plugin
|
||||
*/
|
||||
function get_service_name()
|
||||
{
|
||||
return 'core.captcha.plugins.qa';
|
||||
return $this->service_name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the name of the plugin
|
||||
*
|
||||
* @param string $name
|
||||
*/
|
||||
public function set_name($name)
|
||||
{
|
||||
$this->service_name = $name;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user