Changeset 3874:ab8368569446 for inc/load_plugin_file.php
- Timestamp:
- 09/14/18 12:16:17 (7 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/load_plugin_file.php
r3731 r3874 56 56 } 57 57 58 $allow_types = array('png', 'jpg', 'jpeg', 'gif', 'css', 'js', 'swf', 'svg');58 $allow_types = ['png', 'jpg', 'jpeg', 'gif', 'css', 'js', 'swf', 'svg']; 59 59 60 60 $pf = path::clean($_GET['pf']); … … 89 89 90 90 http::$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()));91 http::cache(array_merge([$PF], get_included_files())); 92 92 93 93 header('Content-Type: ' . files::getMimeType($PF));
Note: See TracChangeset
for help on using the changeset viewer.