From 85cab9d8cd4ebe06d24f1d907ea507c88e636697 Mon Sep 17 00:00:00 2001 From: martinlanghoff Date: Thu, 20 Sep 2007 06:51:13 +0000 Subject: [PATCH] eaccelerator: never set the mode if we failed to init --- lib/eaccelerator.class.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/eaccelerator.class.php b/lib/eaccelerator.class.php index 4f0b709f21..6ead149e12 100644 --- a/lib/eaccelerator.class.php +++ b/lib/eaccelerator.class.php @@ -22,14 +22,13 @@ class eaccelerator { function eaccelerator() { global $CFG; if ( function_exists('eaccelerator_get')) { - $mode = 'eaccelerator'; + $this->mode = 'eaccelerator'; } elseif (function_exists('mmcache_get')) { - $mode = 'mmcache'; + $this->mode = 'mmcache'; } else { debugging("\$CFG->eaccelerator is set to true but the required functions are not available. You need to have either eaccelerator or turckmmcache extensions installed, compiled with the shmem keys option enabled."); } - $this->mode = $mode; $this->prefix = $CFG->dbname .'|' . $CFG->prefix . '|'; } -- 2.39.5