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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user