Commits

Harro Verton committed 278a965

introduced DATAMAPPERPATH for easier Spark integration

Comments (0)

Files changed (3)

application/third_party/datamapper/bootstrap.php

  * @version     2.0.0-dev
  */
 
+// make sure we have a DATAMAPPERPATH
+defined('DATAMAPPERPATH') OR define('DATAMAPPERPATH', APPPATH);
+
 /**
 * Class registry
 *
 		}
 
 		// Do we have a DataMapper extension for this class?
-		if (file_exists($file = APPPATH.'third_party/datamapper/system/'.$class.'.php'))
+		if (file_exists($file = DATAMAPPERPATH.'third_party/datamapper/system/'.$class.'.php'))
 		{
 			require_once($file);
 		}

application/third_party/datamapper/system/DB.php

 	$driver = 'CI_DB_'.$params['dbdriver'].'_driver';
 
 	// load Datamappers DB interceptor class
-	require(APPPATH.'third_party/datamapper/system/DB_driver.php');
+	require(DATAMAPPERPATH.'third_party/datamapper/system/DB_driver.php');
 
 	$DB = new $driver($params);
 

application/third_party/datamapper/system/Loader.php

 			return FALSE;
 		}
 
-		require_once(APPPATH.'third_party/datamapper/system/DB.php');
+		require_once(DATAMAPPERPATH.'third_party/datamapper/system/DB.php');
 
 		if (\$return === TRUE)
 		{