Changeset 3167:9b0e5988c0eb for inc/core/class.dc.rs.extensions.php
- Timestamp:
- 02/11/16 15:35:39 (10 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/core/class.dc.rs.extensions.php
r3106 r3167 447 447 @return <b>integer</b> 448 448 */ 449 public static function countMedia($rs )449 public static function countMedia($rs,$link_type=null) 450 450 { 451 451 if (isset($rs->_nb_media[$rs->index()])) … … 459 459 'FROM '.$rs->core->prefix.'post_media '. 460 460 'WHERE post_id = '.(integer) $rs->post_id.' '; 461 if ($link_type != null) { 462 $strReq .= "AND link_type = '".$rs->core->con->escape($link_type)."'"; 463 } 461 464 462 465 $res = (integer) $rs->core->con->select($strReq)->f(0);
Note: See TracChangeset
for help on using the changeset viewer.