aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/extension/manager.php
diff options
context:
space:
mode:
authorDhruv Goel <dhruv.goel92@gmail.com>2012-03-23 00:27:29 +0530
committerDhruv Goel <dhruv.goel92@gmail.com>2012-03-23 00:27:29 +0530
commit18c541dfee6ec7db0e04c939bc103cefe9dab9d7 (patch)
treec44e1d99f9efb3a93b97142aebbef268a920a388 /phpBB/includes/extension/manager.php
parent1fa39ea722ab8e27402d3db67d5f11587570a96d (diff)
downloadforums-18c541dfee6ec7db0e04c939bc103cefe9dab9d7.tar
forums-18c541dfee6ec7db0e04c939bc103cefe9dab9d7.tar.gz
forums-18c541dfee6ec7db0e04c939bc103cefe9dab9d7.tar.bz2
forums-18c541dfee6ec7db0e04c939bc103cefe9dab9d7.tar.xz
forums-18c541dfee6ec7db0e04c939bc103cefe9dab9d7.zip
[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
Diffstat (limited to 'phpBB/includes/extension/manager.php')
-rw-r--r--phpBB/includes/extension/manager.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/phpBB/includes/extension/manager.php b/phpBB/includes/extension/manager.php
index c38f0df32e..dac0e5f947 100644
--- a/phpBB/includes/extension/manager.php
+++ b/phpBB/includes/extension/manager.php
@@ -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/'),