From 8f12e9ada3b225c3c2772cfb79f83f0c28f9f744 Mon Sep 17 00:00:00 2001 From: CaMer0n Date: Fri, 20 Aug 2010 09:25:10 +0000 Subject: [PATCH] Switched ZBBlock support to a more generic include option: $CLASS2_INCLUDE = "path_to_file"; inside e107_config.php eg. $CLASS2_INCLUDE = 'zbblock/zbblock.php'; --- class2.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/class2.php b/class2.php index 0ef6f8158..dbdc386c1 100644 --- a/class2.php +++ b/class2.php @@ -195,9 +195,9 @@ else // @include_once(realpath(dirname(__FILE__).'/e107_config.php')); -if(isset($ZBBLOCK) && ($ZBBLOCK == TRUE)) -{ - require_once(realpath(dirname(__FILE__).'/zbblock/zbblock.php')); +if(isset($CLASS2_INCLUDE) && ($CLASS2_INCLUDE!='')) +{ + require_once(realpath(dirname(__FILE__).'/'.$CLASS2_INCLUDE)); } //define("MPREFIX", $mySQLprefix); moved to $e107->set_constants()