From 7aa8f6461f1e85cf91931f56b95384e54fec07c2 Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Wed, 30 Oct 2013 13:05:28 +0100 Subject: [task/code-sniffer] Remove the IN_PHPBB check side-effect from class files. PHPBB3-11980 --- phpBB/phpbb/avatar/driver/local.php | 8 -------- 1 file changed, 8 deletions(-) (limited to 'phpBB/phpbb/avatar/driver/local.php') diff --git a/phpBB/phpbb/avatar/driver/local.php b/phpBB/phpbb/avatar/driver/local.php index 0686ffe79a..f6acc6e636 100644 --- a/phpBB/phpbb/avatar/driver/local.php +++ b/phpBB/phpbb/avatar/driver/local.php @@ -9,14 +9,6 @@ namespace phpbb\avatar\driver; -/** -* @ignore -*/ -if (!defined('IN_PHPBB')) -{ - exit; -} - /** * Handles avatars selected from the board gallery * @package phpBB3 -- cgit v1.2.1 From 6618f0ea246100c55636ef679df55d2c951dfbc0 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Wed, 27 Nov 2013 15:18:42 +0100 Subject: [ticket/11859] Make avatar drivers return template filename The service name might not follow the expected naming scheme which would cause abnormally long filenames and confusion for authors that might add more avatar drivers. PHPBB3-11859 --- phpBB/phpbb/avatar/driver/local.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'phpBB/phpbb/avatar/driver/local.php') diff --git a/phpBB/phpbb/avatar/driver/local.php b/phpBB/phpbb/avatar/driver/local.php index f6acc6e636..611a44cb3d 100644 --- a/phpBB/phpbb/avatar/driver/local.php +++ b/phpBB/phpbb/avatar/driver/local.php @@ -134,6 +134,14 @@ class local extends \phpbb\avatar\driver\driver ); } + /** + * @inheritdoc + */ + public function get_template_name() + { + return 'ucp_avatar_options_local.html'; + } + /** * Get a list of avatars that are locally available * Results get cached for 24 hours (86400 seconds) -- cgit v1.2.1