Dotclear


Ignore:
Timestamp:
02/11/16 15:35:39 (10 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Cope with sort of "un-attached" media → allows new features as "featured media" plugin. Video and Audio HTML5 element are now used (if possible) rather than Flash object for attachments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/core/class.dc.rs.extensions.php

    r3106 r3167  
    447447     @return   <b>integer</b> 
    448448     */ 
    449      public static function countMedia($rs) 
     449     public static function countMedia($rs,$link_type=null) 
    450450     { 
    451451          if (isset($rs->_nb_media[$rs->index()])) 
     
    459459               'FROM '.$rs->core->prefix.'post_media '. 
    460460               'WHERE post_id = '.(integer) $rs->post_id.' '; 
     461               if ($link_type != null) { 
     462                    $strReq .= "AND link_type = '".$rs->core->con->escape($link_type)."'"; 
     463               } 
    461464 
    462465               $res = (integer) $rs->core->con->select($strReq)->f(0); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map