From bc738b910f44ed6998dc2d181fb284f029a9a4d2 Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 2 Dec 2013 12:25:10 -0500 Subject: Removing unnecessary dependencies! --- framework/Wsat/TWsatARGenerator.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'framework/Wsat/TWsatARGenerator.php') diff --git a/framework/Wsat/TWsatARGenerator.php b/framework/Wsat/TWsatARGenerator.php index 5c812ef5..d5b87a4f 100644 --- a/framework/Wsat/TWsatARGenerator.php +++ b/framework/Wsat/TWsatARGenerator.php @@ -52,6 +52,8 @@ class TWsatARGenerator function __construct() { + if(!class_exists("TActiveRecordManager", false)) + throw new Exception("You need to enable the ActiveRecord module in your application configuration file."); $ar_manager = TActiveRecordManager::getInstance(); $this->_conn = $ar_manager->getDbConnection(); $this->_conn->Active = true; -- cgit v1.2.3