diff options
author | Dhruv Goel <dhruv.goel92@gmail.com> | 2012-03-23 00:27:29 +0530 |
---|---|---|
committer | Dhruv Goel <dhruv.goel92@gmail.com> | 2012-03-23 00:27:29 +0530 |
commit | 18c541dfee6ec7db0e04c939bc103cefe9dab9d7 (patch) | |
tree | c44e1d99f9efb3a93b97142aebbef268a920a388 /phpBB/develop | |
parent | 1fa39ea722ab8e27402d3db67d5f11587570a96d (diff) | |
download | forums-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/develop')
-rw-r--r-- | phpBB/develop/extensions.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/phpBB/develop/extensions.php b/phpBB/develop/extensions.php index 2f7c3d1167..43621f3080 100644 --- a/phpBB/develop/extensions.php +++ b/phpBB/develop/extensions.php @@ -37,6 +37,13 @@ function list_extensions() global $phpbb_extension_manager; $phpbb_extension_manager->load_extensions(); + $all = array_keys($phpbb_extension_manager->all_available()); + + if (empty($all)) + { + echo "There were no extensions found.\n"; + exit(3); + } echo "Enabled:\n"; $enabled = array_keys($phpbb_extension_manager->all_enabled()); @@ -49,7 +56,6 @@ function list_extensions() echo "\n"; echo "Available:\n"; - $all = array_keys($phpbb_extension_manager->all_available()); $purged = array_diff($all, $enabled, $disabled); print_extensions($purged); } |