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_var_file.php

    r3731 r3874  
    5656} 
    5757 
    58 $allow_types = array('png', 'jpg', 'jpeg', 'gif', 'css', 'js', 'swf', 'svg', 'html', 'xml', 'json', 'txt'); 
     58$allow_types = ['png', 'jpg', 'jpeg', 'gif', 'css', 'js', 'swf', 'svg', 'html', 'xml', 'json', 'txt']; 
    5959 
    6060$vf = path::clean($_GET['vf']); 
     
    7474 
    7575http::$cache_max_age = 7 * 24 * 60 * 60; // One week cache for var files served by ?vf=… 
    76 http::cache(array_merge(array($VF), get_included_files())); 
     76http::cache(array_merge([$VF], get_included_files())); 
    7777 
    7878header('Content-Type: ' . files::getMimeType($VF)); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map