Skip to content
Browse files

eaccelerator: never set the mode if we failed to init

  • Loading branch information...
1 parent 2b33092 commit f33f60f78edf64b08f9381514cb0d4898450d4e2 martinlanghoff committed Sep 20, 2007
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/eaccelerator.class.php
View
5 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 . '|';
}

0 comments on commit f33f60f

Please sign in to comment.
Something went wrong with that request. Please try again.