Dotclear


Ignore:
Timestamp:
09/14/18 12:16:17 (7 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

short notation for array (array() → [])

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/load_plugin_file.php

    r3731 r3874  
    5656} 
    5757 
    58 $allow_types = array('png', 'jpg', 'jpeg', 'gif', 'css', 'js', 'swf', 'svg'); 
     58$allow_types = ['png', 'jpg', 'jpeg', 'gif', 'css', 'js', 'swf', 'svg']; 
    5959 
    6060$pf = path::clean($_GET['pf']); 
     
    8989 
    9090http::$cache_max_age = 7 * 24 * 60 * 60; // One week cache for plugin's files served by ?pf=… is better than old 2 hours 
    91 http::cache(array_merge(array($PF), get_included_files())); 
     91http::cache(array_merge([$PF], get_included_files())); 
    9292 
    9393header('Content-Type: ' . files::getMimeType($PF)); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map