Lines Matching defs:file
14 * making sure that only cached file paths are passed to mpdf. It also
18 &$file,
24 [$file, $orig_srcpath] = self::adjustGetImageLinks($file, $orig_srcpath);
26 return parent::getImage($file, $firsttime, $allowvector, $orig_srcpath, $interpolation);
30 public static function adjustGetImageLinks($file, $orig_srcpath)
40 preg_match("/^$re/", $file, $m) ||
41 preg_match('/[&?]media=([^&?]*)/', $file, $m)
46 [$ext, $mime] = mimetype($file);
51 if (substr($file, 0, 9) == 'dw2pdf://') {
53 $local = substr($file, 9);
54 } elseif (!preg_match('/(\.php|\?)/', $file)) {
57 $local = preg_replace("/^$re/i", DOKU_INC, $file);
66 if (preg_match('/[?&]w=(\d+)/', $file, $m)) {
69 if (preg_match('/[?&]h=(\d+)/', $file, $m)) {
72 if (preg_match('/[&?]rev=(\d+)/', $file, $m)) {
86 $file = '';
101 } elseif (!file_exists($local) && media_isexternal($file)) { // fixed external URLs
102 $local = media_get_from_URL($file, $ext, $conf['cachetime']);
106 $file = $local;
111 return [$file, $orig_srcpath];