MDL-45412 Cache: Look for the newer classname first (mongo store)

This commit is contained in:
Damyon Wiese 2014-05-06 11:58:15 +08:00
parent 87f7ae9c46
commit 7c6f2e29ae

View File

@ -166,7 +166,7 @@ class cachestore_mongodb extends cache_store implements cache_is_configurable {
* @return bool
*/
public static function are_requirements_met() {
return class_exists('Mongo');
return class_exists('MongoClient') || class_exists('Mongo');
}
/**