diff --git a/phpBB/includes/acp/acp_extensions.php b/phpBB/includes/acp/acp_extensions.php index da03b576bf..a9cbb8956b 100644 --- a/phpBB/includes/acp/acp_extensions.php +++ b/phpBB/includes/acp/acp_extensions.php @@ -724,6 +724,13 @@ class acp_extensions } } + /** + * Checks whether the extension can be enabled. Triggers error if not. + * Error message can be set by the extension. + * + * @param bool|array $enableable True if extension is enableable, array of reasons + * if not, false for generic reason. + */ protected function check_is_enableable($enableable) { if ($enableable !== true) diff --git a/tests/extension/ext/vendor5/foo/composer.json b/tests/extension/ext/vendor5/foo/composer.json index ddaee68dc4..0fa052e188 100644 --- a/tests/extension/ext/vendor5/foo/composer.json +++ b/tests/extension/ext/vendor5/foo/composer.json @@ -20,4 +20,4 @@ "phpbb/phpbb": "3.3.*@dev" } } -} \ No newline at end of file +} diff --git a/tests/extension/ext/vendor5/foo/ext.php b/tests/extension/ext/vendor5/foo/ext.php index 729e9d2a33..6bf03f001c 100644 --- a/tests/extension/ext/vendor5/foo/ext.php +++ b/tests/extension/ext/vendor5/foo/ext.php @@ -16,4 +16,4 @@ class ext extends \phpbb\extension\base self::$enabled = true; return self::$enabled; } -} \ No newline at end of file +}