[ticket/15257] Address validation issues

PHPBB3-15257
This commit is contained in:
Jakub Senko 2019-04-12 12:36:37 +02:00 committed by Marc Alexander
parent 975fe1e153
commit d7c644a792
No known key found for this signature in database
GPG key ID: 50E0D2423696F995
3 changed files with 9 additions and 2 deletions

View file

@ -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)