diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2009-01-20 16:54:15 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2009-01-20 16:54:15 +0000 |
commit | cd4091af43fa2d7d3dbe5ad0d583c63f1d96c903 (patch) | |
tree | b60c6980ad85e4a8daf48a10c3ab9e2efa4f29c2 /phpBB/includes/acm | |
parent | b55f9854e770ba7c37e0e1914c8570c856cbecf3 (diff) | |
download | forums-cd4091af43fa2d7d3dbe5ad0d583c63f1d96c903.tar forums-cd4091af43fa2d7d3dbe5ad0d583c63f1d96c903.tar.gz forums-cd4091af43fa2d7d3dbe5ad0d583c63f1d96c903.tar.bz2 forums-cd4091af43fa2d7d3dbe5ad0d583c63f1d96c903.tar.xz forums-cd4091af43fa2d7d3dbe5ad0d583c63f1d96c903.zip |
i am not sure if people will like the config layout i test here... it requires the framework at least being present
git-svn-id: file:///svn/phpbb/trunk@9281 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/acm')
-rw-r--r-- | phpBB/includes/acm/bootstrap.php | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/phpBB/includes/acm/bootstrap.php b/phpBB/includes/acm/bootstrap.php index 849f3e3863..ea671706e5 100644 --- a/phpBB/includes/acm/bootstrap.php +++ b/phpBB/includes/acm/bootstrap.php @@ -17,15 +17,6 @@ if (!defined('IN_PHPBB')) } /** -* Define missing ACM config variable... if not initialized yet -* @ignore -*/ -if (!defined('CONFIG_ACM_TYPE')) -{ - define('CONFIG_ACM_TYPE', 'file'); -} - -/** * Base cache class. * * A prefix of # for $var_name indicates global data. @@ -63,6 +54,9 @@ class phpbb_acm /** * Magic method for calling type-specific functions. * Functions directly supported are: get(), put(), exists(), destroy() + * + * The type is added to the methods name, for getting sql data just use get_sql() for example. + * * see {@link phpbb_acm_abstract phpbb_acm_abstract} for more information * * @access public @@ -176,8 +170,10 @@ class phpbb_acm * @return bool Returns true on success, else false. * @access public */ - public function register($cache_type, $cache_append = false, $cache_object = CONFIG_ACM_TYPE) + public function register($cache_type, $cache_append = false, $cache_object = false) { + $cache_object = ($cache_object === false) ? basename(phpbb::$base_config['acm_type']) : basename($cache_object); + // We need to init every cache type... if (!isset($this->cache_types[$cache_type])) { |