mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 12:20:44 +02:00
e_model db singleton instance namespace (load collections), based on model class
This commit is contained in:
@@ -2953,7 +2953,7 @@ class e_tree_model extends e_front_model
|
|||||||
|
|
||||||
if($this->getParam('db_query') && $class_name && class_exists($class_name))
|
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;
|
$this->_total = $sql->total_results = false;
|
||||||
|
|
||||||
if($sql->db_Select_gen($this->getParam('db_query')))
|
if($sql->db_Select_gen($this->getParam('db_query')))
|
||||||
|
Reference in New Issue
Block a user