aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/captcha/plugins/qa.php
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-08-10 15:10:14 +0200
committerTristan Darricau <github@nicofuma.fr>2014-08-11 01:16:58 +0200
commitfa2ac1f27126292a24aa33136b2d3a7f1832ea47 (patch)
tree2a40bf7908771f6d889718753c25f5b39c252873 /phpBB/phpbb/captcha/plugins/qa.php
parent76633544ee6084e61641ec423cd0480bb4b771c5 (diff)
downloadforums-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/qa.php')
-rw-r--r--phpBB/phpbb/captcha/plugins/qa.php19
1 files changed, 17 insertions, 2 deletions
diff --git a/phpBB/phpbb/captcha/plugins/qa.php b/phpBB/phpbb/captcha/plugins/qa.php
index 96cd99826d..a7ba994cc3 100644
--- a/phpBB/phpbb/captcha/plugins/qa.php
+++ b/phpBB/phpbb/captcha/plugins/qa.php
@@ -35,6 +35,11 @@ class qa
protected $table_qa_confirm;
/**
+ * @var string name of the service.
+ */
+ protected $service_name;
+
+ /**
* Constructor
*
* @param string $table_captcha_questions
@@ -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;
}
/**