Changeset 1270:2d6acb946596 for inc/core
- Timestamp:
- 08/05/13 13:58:47 (12 years ago)
- Branch:
- 2.5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/core/class.dc.media.php
r1268 r1270 497 497 @param post_id <b>integer</b> Post ID 498 498 @param media_id <b>integer</b> Optionnal media ID 499 @param $returnRs <b>boolean</b> Whether to return a resultset (true) or an array (false, default value).499 @param return_rs <b>boolean</b> Whether to return a resultset (true) or an array (false, default value). 500 500 @return <b>array</b> Array or ResultSet of fileItems 501 501 */ 502 public function getPostMedia($post_id,$media_id=null,$return Rs=false)502 public function getPostMedia($post_id,$media_id=null,$return_rs=false) 503 503 { 504 504 $params = array( … … 516 516 $f = $this->fileRecord($rs); 517 517 if ($f !== null) { 518 $res[] = $return Rs ? new ArrayObject($f) : $f;519 } 520 } 521 522 return $return Rs ? staticRecord::newFromArray($res) : $res;518 $res[] = $return_rs ? new ArrayObject($f) : $f; 519 } 520 } 521 522 return $return_rs ? staticRecord::newFromArray($res) : $res; 523 523 } 524 524
Note: See TracChangeset
for help on using the changeset viewer.