mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/15257] Address validation issues
PHPBB3-15257
This commit is contained in:
parent
975fe1e153
commit
d7c644a792
3 changed files with 9 additions and 2 deletions
|
@ -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)
|
protected function check_is_enableable($enableable)
|
||||||
{
|
{
|
||||||
if ($enableable !== true)
|
if ($enableable !== true)
|
||||||
|
|
|
@ -20,4 +20,4 @@
|
||||||
"phpbb/phpbb": "3.3.*@dev"
|
"phpbb/phpbb": "3.3.*@dev"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,4 +16,4 @@ class ext extends \phpbb\extension\base
|
||||||
self::$enabled = true;
|
self::$enabled = true;
|
||||||
return self::$enabled;
|
return self::$enabled;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue