Skip to content

Commit

Permalink
Merge pull request #190 from lucmuller/patch-1
Browse files Browse the repository at this point in the history
@is_file and filesize correction
  • Loading branch information
rupertgermann authored Jun 24, 2024
2 parents bfc725a + 3b1ffd8 commit 05bc610
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/Plugin/TtNews.php
Original file line number Diff line number Diff line change
Expand Up @@ -2191,9 +2191,9 @@ protected function getFileLinks(&$markerArray, $row)
if ($this->theCode == 'XML') {
$theFile = $filesPath . $val;

if (@is_file($theFile)) {
if (@is_file(Environment::getPublicPath().$theFile)) {
$fileURL = $this->config['siteUrl'] . $theFile;
$fileSize = filesize($theFile);
$fileSize = filesize(Environment::getPublicPath().$theFile);
$fileMimeType = $this->getMimeTypeByHttpRequest($fileURL);

$rss2Enclousres .= '<enclosure url="' . $fileURL . '" ';
Expand Down

0 comments on commit 05bc610

Please sign in to comment.