1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-21 13:11:52 +02:00

Check for old compatibility class and load if found. (BC fix)

This commit is contained in:
Cameron 2013-05-02 03:54:39 -07:00
parent 4140f649a9
commit 25e671413a

View File

@ -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
//