1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-29 10:38:08 +01:00

e_model db singleton instance namespace (load collections), based on model class

This commit is contained in:
secretr 2011-01-20 11:29:51 +00:00
parent d994127b4e
commit eab7c52ab9

View File

@ -2953,7 +2953,7 @@ class e_tree_model extends e_front_model
if($this->getParam('db_query') && $class_name && class_exists($class_name))
{
$sql = e107::getDb();
$sql = e107::getDb($this->getParam('model_class', 'e_model'));
$this->_total = $sql->total_results = false;
if($sql->db_Select_gen($this->getParam('db_query')))