1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-16 11:36:08 +02:00

Use news_class on print page.

This commit is contained in:
Cameron
2018-01-16 14:41:51 -08:00
parent be8ebe6850
commit c2048c1c2f
3 changed files with 13 additions and 3 deletions

View File

@@ -1511,6 +1511,8 @@ class e_model extends e_object
*/
public function load($id = null, $force = false)
{
if(!$force && $this->getId())
{
return $this;
@@ -1566,6 +1568,7 @@ class e_model extends e_object
}
else
{
$this->_setCacheData();
}
@@ -2578,6 +2581,8 @@ class e_front_model extends e_model
// already done by the parent
//$this->addMessageDebug('SQL Error #'.$this->_db_errno.': '.$sql->getLastErrorText());
}
return $this;
}