mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/13740] Fix is_phpbb_installed() method
PHPBB3-13740
This commit is contained in:
@@ -47,14 +47,14 @@ class install_helper
|
||||
*/
|
||||
public function is_phpbb_installed()
|
||||
{
|
||||
$config_path = $this->phpbb_root_path . 'config' . $this->php_ext;
|
||||
$config_path = $this->phpbb_root_path . 'config.' . $this->php_ext;
|
||||
$install_lock_path = $this->phpbb_root_path . 'cache/install_lock';
|
||||
|
||||
if (file_exists($config_path) && !file_exists($install_lock_path))
|
||||
if (file_exists($config_path) && !file_exists($install_lock_path) && filesize($config_path))
|
||||
{
|
||||
include_once $config_path;
|
||||
return true;
|
||||
}
|
||||
|
||||
return defined('PHPBB_INSTALLED');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user