1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/10703] Added a condition to check if ext directory exists

The existence of ext directory is checked, if not present a proper
error message that file doesn't exist is printed out. No Fatal
Error messages.

PHPBB3-10703
This commit is contained in:
Dhruv Goel
2012-03-23 00:27:29 +05:30
parent 1fa39ea722
commit 18c541dfee
2 changed files with 11 additions and 1 deletions

View File

@@ -352,6 +352,10 @@ class phpbb_extension_manager
public function all_available()
{
$available = array();
if (!is_dir($this->phpbb_root_path . 'ext/'))
{
return $available;
}
$iterator = new RecursiveIteratorIterator(
new RecursiveDirectoryIterator($this->phpbb_root_path . 'ext/'),