Dotclear

Changeset 3958:5e250cd51362 for plugins


Ignore:
Timestamp:
02/20/19 14:35:05 (7 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

No more Flash player (flv, mp3) in Dotclear \o/

Location:
plugins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/attachments/_public.php

    r3874 r3958  
    120120 
    121121        if (isset($attr['is_video'])) { 
     122            // Since 2.15 .flv media are no more considered as video (Flash is obsolete) 
    122123            $sign = (boolean) $attr['is_video'] ? '==' : '!='; 
    123             $if[] = '$attach_f->type_prefix ' . $sign . ' "video"'; 
     124            $test = '$attach_f->type_prefix ' . $sign . ' "video"'; 
     125            if ($sign == '==') { 
     126                $test .= ' && $attach_f->type != "video/x-flv"'; 
     127            } else { 
     128                $test .= ' || $attach_f->type == "video/x-flv"'; 
     129            } 
     130            $if[] = $test; 
    124131        } 
    125132 
  • plugins/pages/default-templates/mustek/page.html

    r3422 r3958  
    4040                    </tpl:AttachmentIf> 
    4141                    <tpl:AttachmentIf is_video="1"> 
    42                          <tpl:AttachmentIf is_flv="0"> 
    43                               {{tpl:include src="_video_player.html"}} 
    44                          {{tpl:else}} 
    45                               {{tpl:include src="_flv_player.html"}} 
    46                          </tpl:AttachmentIf> 
     42                         {{tpl:include src="_video_player.html"}} 
    4743                    </tpl:AttachmentIf> 
    4844                    <tpl:AttachmentIf is_audio="0" is_video="0"> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map