From 25e671413a776330a34eb37add5d86826a105f62 Mon Sep 17 00:00:00 2001 From: Cameron Date: Thu, 2 May 2013 03:54:39 -0700 Subject: [PATCH] Check for old compatibility class and load if found. (BC fix) --- class2.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/class2.php b/class2.php index 2a9d5edfe..69df51fc3 100644 --- a/class2.php +++ b/class2.php @@ -380,6 +380,11 @@ elseif ($merror === 'e2') /* PHP Compatabilty should *always* be on. */ e107_require_once(e_HANDLER.'php_compatibility_handler.php'); +if(file_exists(e_HANDLER."e107_Compat_handler.php")) // upgraded site, and may still be required for old plugins. +{ + e107_require_once(e_HANDLER."e107_Compat_handler.php"); +} + // // L: Extract core prefs from the database //