From 519e64205a50b15efa8589901c87f5b21448993a Mon Sep 17 00:00:00 2001 From: Tristan Darricau Date: Sun, 13 Jul 2014 15:44:58 +0200 Subject: [ticket/12847] Allow the extensions to say if they can be enabled PHPBB3-12847 --- phpBB/phpbb/extension/base.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'phpBB/phpbb/extension/base.php') diff --git a/phpBB/phpbb/extension/base.php b/phpBB/phpbb/extension/base.php index cbbd7bc622..288fb7d19c 100644 --- a/phpBB/phpbb/extension/base.php +++ b/phpBB/phpbb/extension/base.php @@ -40,6 +40,7 @@ class base implements \phpbb\extension\extension_interface * * @param ContainerInterface $container Container object * @param \phpbb\finder $extension_finder + * @param \phpbb\db\migrator $migrator * @param string $extension_name Name of this extension (from ext.manager) * @param string $extension_path Relative path to this extension */ @@ -53,6 +54,14 @@ class base implements \phpbb\extension\extension_interface $this->extension_path = $extension_path; } + /** + * {@inheritdoc} + */ + public function is_enableable() + { + return true; + } + /** * Single enable step that installs any included migrations * -- cgit v1.2.1