diff options
author | Chris Smith <toonarmy@phpbb.com> | 2009-06-04 15:37:53 +0000 |
---|---|---|
committer | Chris Smith <toonarmy@phpbb.com> | 2009-06-04 15:37:53 +0000 |
commit | cd1c5de3a508ec851b11baf4095449c66ee6c770 (patch) | |
tree | 230f6769dbc5939fd206431bca79002ead3a9eca /phpBB/includes/acm/acm_memory.php | |
parent | 710604caa328be820d6240cb9cfccf568bc874d2 (diff) | |
download | forums-cd1c5de3a508ec851b11baf4095449c66ee6c770.tar forums-cd1c5de3a508ec851b11baf4095449c66ee6c770.tar.gz forums-cd1c5de3a508ec851b11baf4095449c66ee6c770.tar.bz2 forums-cd1c5de3a508ec851b11baf4095449c66ee6c770.tar.xz forums-cd1c5de3a508ec851b11baf4095449c66ee6c770.zip |
Finished I hope, appropriate errors when modules are missing.
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9540 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/acm/acm_memory.php')
-rw-r--r-- | phpBB/includes/acm/acm_memory.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/phpBB/includes/acm/acm_memory.php b/phpBB/includes/acm/acm_memory.php index a97f680d1e..85e7a7b9d7 100644 --- a/phpBB/includes/acm/acm_memory.php +++ b/phpBB/includes/acm/acm_memory.php @@ -37,6 +37,13 @@ class acm_memory global $phpbb_root_path; $this->cache_dir = $phpbb_root_path . 'cache/'; + + if (!isset($this->extension) || !extension_loaded($this->extension)) + { + global $acm_type; + + trigger_error("Could not find required extension [{$this->extension}] for the ACM module $acm_type.", E_USER_ERROR); + } } /** |