Dotclear


Ignore:
Timestamp:
11/17/15 13:22:52 (10 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Make Flash player fallback insertion optional, not anymore needed with modern browsers supporting <video> and <audio> HTML5 tags.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/dbschema/upgrade.php

    r3128 r3138  
    467467               } 
    468468 
    469                if (version_compare($version,'2.9','<')) 
     469               if (version_compare($version,'2.9','<=')) 
    470470               { 
    471471                    # Some new settings should be initialized, prepare db queries 
    472472                    $strReq = 'INSERT INTO '.$core->prefix.'setting'. 
    473473                              ' (setting_id,setting_ns,setting_value,setting_type,setting_label)'. 
    474                               ' VALUES(\'%s\',\'system\',\'%s\',\'integer\',\'%s\')'; 
    475                     $core->con->execute(sprintf($strReq,'media_video_width','400','Media video insertion width')); 
    476                     $core->con->execute(sprintf($strReq,'media_video_height','300','Media video insertion height')); 
     474                              ' VALUES(\'%s\',\'system\',\'%s\',\'%s\',\'%s\')'; 
     475                    $core->con->execute( 
     476                         sprintf($strReq,'media_video_width','400','integer','Media video insertion width')); 
     477                    $core->con->execute( 
     478                         sprintf($strReq,'media_video_height','300','integer','Media video insertion height')); 
     479                    $core->con->execute( 
     480                         sprintf($strReq,'media_flash_fallback','1','boolean','Flash player fallback for audio and video media')); 
    477481               } 
    478482 
Note: See TracChangeset for help on using the changeset viewer.

Sites map