1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 20:57:26 +02:00

Switched ZBBlock support to a more generic include option: $CLASS2_INCLUDE = "path_to_file"; inside e107_config.php

eg. $CLASS2_INCLUDE = 'zbblock/zbblock.php';
This commit is contained in:
CaMer0n
2010-08-20 09:25:10 +00:00
parent f50e3c9be4
commit 8f12e9ada3

View File

@@ -195,9 +195,9 @@ else
// //
@include_once(realpath(dirname(__FILE__).'/e107_config.php')); @include_once(realpath(dirname(__FILE__).'/e107_config.php'));
if(isset($ZBBLOCK) && ($ZBBLOCK == TRUE)) if(isset($CLASS2_INCLUDE) && ($CLASS2_INCLUDE!=''))
{ {
require_once(realpath(dirname(__FILE__).'/zbblock/zbblock.php')); require_once(realpath(dirname(__FILE__).'/'.$CLASS2_INCLUDE));
} }
//define("MPREFIX", $mySQLprefix); moved to $e107->set_constants() //define("MPREFIX", $mySQLprefix); moved to $e107->set_constants()