|
@@ -66,7 +66,7 @@ discard block |
|
|
block discarded – undo |
|
66
|
66
|
if (!is_dir(PMF_ROOT_DIR.'/images')) { |
|
67
|
67
|
echo '<p class="alert alert-danger">'.sprintf($PMF_LANG['ad_dir_missing'], '/images').'</p>'; |
|
68
|
68
|
} else { |
|
69
|
|
- $files = new RecursiveIteratorIterator(new RecursiveDirectoryIterator(PMF_ROOT_DIR . '/images/')); |
|
|
69
|
+ $files = new RecursiveIteratorIterator(new RecursiveDirectoryIterator(PMF_ROOT_DIR.'/images/')); |
|
70
|
70
|
foreach ($files as $file) { |
|
71
|
71
|
if ($file->isDir() || !in_array($file->getExtension(), $allowedExtensions)) { |
|
72
|
72
|
continue; |
|
@@ -74,9 +74,9 @@ discard block |
|
|
block discarded – undo |
|
74
|
74
|
$path = str_replace(dirname(__DIR__).'/', '', $file->getPath()); |
|
75
|
75
|
printf( |
|
76
|
76
|
'<div class="mce-file" data-src="%s"><img src="%s" class="mce-file-preview">%s</div>', |
|
77
|
|
- $faqConfig->getDefaultUrl() . $path . '/' . $file->getFilename(), |
|
78
|
|
- $faqConfig->getDefaultUrl() . $path . '/' . $file->getFilename(), |
|
79
|
|
- $path . '/' . $file->getFilename() |
|
|
77
|
+ $faqConfig->getDefaultUrl().$path.'/'.$file->getFilename(), |
|
|
78
|
+ $faqConfig->getDefaultUrl().$path.'/'.$file->getFilename(), |
|
|
79
|
+ $path.'/'.$file->getFilename() |
|
80
|
80
|
); |
|
81
|
81
|
} |
|
82
|
82
|
} |
Please login to merge, or discard this patch.