aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/install_install.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/install/install_install.php')
-rwxr-xr-xphpBB/install/install_install.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/phpBB/install/install_install.php b/phpBB/install/install_install.php
index 6ba31c6039..7bfecd1685 100755
--- a/phpBB/install/install_install.php
+++ b/phpBB/install/install_install.php
@@ -1603,7 +1603,13 @@ class install_install extends module
{
global $db, $lang, $phpbb_root_path, $phpEx;
- $dir = opendir($phpbb_root_path . 'language');
+ $dir = @opendir($phpbb_root_path . 'language');
+
+ if (!$dir)
+ {
+ $this->error('Unable to access the language directory', __LINE__, __FILE__);
+ }
+
while (($file = readdir($dir)) !== false)
{
$path = $phpbb_root_path . 'language/' . $file;