mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
[ticket/17414] Add get_template function to plugin interface
PHPBB-17414
This commit is contained in:
@@ -145,6 +145,19 @@ class legacy_wrapper implements plugin_interface
|
|||||||
return PHP_INT_MAX;
|
return PHP_INT_MAX;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function get_template(): string
|
||||||
|
{
|
||||||
|
if (method_exists($this->legacy_captcha, 'get_template'))
|
||||||
|
{
|
||||||
|
return $this->legacy_captcha->get_template();
|
||||||
|
}
|
||||||
|
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
|
@@ -89,7 +89,14 @@ interface plugin_interface
|
|||||||
public function get_attempt_count(): int;
|
public function get_attempt_count(): int;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get template data for demo
|
* Get template filename for captcha
|
||||||
|
*
|
||||||
|
* @return string Template file name
|
||||||
|
*/
|
||||||
|
public function get_template(): string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get template filename for demo
|
||||||
*
|
*
|
||||||
* @return string Demo template file name
|
* @return string Demo template file name
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user