Changeset 3874:ab8368569446 for inc/load_var_file.php
- Timestamp:
- 09/14/18 12:16:17 (7 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/load_var_file.php
r3731 r3874 56 56 } 57 57 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']; 59 59 60 60 $vf = path::clean($_GET['vf']); … … 74 74 75 75 http::$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()));76 http::cache(array_merge([$VF], get_included_files())); 77 77 78 78 header('Content-Type: ' . files::getMimeType($VF));
Note: See TracChangeset
for help on using the changeset viewer.