mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-23 09:00:48 +01:00
[ticket/11150] PHP 5.4 compatibility
PHPBB3-11150
This commit is contained in:
parent
d5672303a3
commit
50b2989cf0
@ -33,7 +33,7 @@ use phpbb\exception\runtime_exception;
|
||||
*/
|
||||
class installer
|
||||
{
|
||||
const PHPBB_TYPES = ['phpbb-extension', 'phpbb-style', 'phpbb-language'];
|
||||
const PHPBB_TYPES = 'phpbb-extension,phpbb-style,phpbb-language';
|
||||
|
||||
/**
|
||||
* @var array Repositories to look packages from
|
||||
@ -268,7 +268,7 @@ class installer
|
||||
{
|
||||
try
|
||||
{
|
||||
$this->generate_ext_json_file($this->do_get_installed_packages(self::PHPBB_TYPES));
|
||||
$this->generate_ext_json_file($this->do_get_installed_packages(explode(',', self::PHPBB_TYPES)));
|
||||
|
||||
$io = new NullIO();
|
||||
$composer = Factory::create($io, $this->get_composer_ext_json_filename(), false);
|
||||
|
@ -173,7 +173,7 @@ class manager implements manager_interface
|
||||
{
|
||||
if ($this->all_managed_packages === null)
|
||||
{
|
||||
$this->all_managed_packages = $this->installer->get_installed_packages(installer::PHPBB_TYPES);
|
||||
$this->all_managed_packages = $this->installer->get_installed_packages(explode(',', installer::PHPBB_TYPES));
|
||||
}
|
||||
|
||||
return $this->all_managed_packages;
|
||||
|
Loading…
x
Reference in New Issue
Block a user