给attachment增加offset

This commit is contained in:
祁宁
2014-04-09 10:44:04 +08:00
parent 3d5f0de968
commit 57c5f92877
2 changed files with 9 additions and 1 deletions
@@ -48,6 +48,10 @@ class Widget_Contents_Attachment_Related extends Widget_Abstract_Contents
$select->limit($this->parameter->limit);
}
if ($this->parameter->offset > 0) {
$select->offset($this->parameter->offset);
}
$this->db->fetchAll($select, array($this, 'push'));
}
}