mirror of
https://github.com/joomla-extensions/patchtester.git
synced 2024-11-15 17:47:10 +00:00
fix issues
This commit is contained in:
parent
e72b6501d1
commit
e93bb384e8
@ -94,19 +94,20 @@ class PullModel extends \JModelDatabase
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove the `src` here to match the CMS paths if needed
|
// Sometimes the repo filename is not the production file name
|
||||||
$repofilename = $file->filename;
|
$prodfilename = $file->filename;
|
||||||
$filePath = explode('/', $repofilename);
|
$filePath = explode('/', $repofilename);
|
||||||
|
|
||||||
|
// Remove the `src` here to match the CMS paths if needed
|
||||||
if ($filePath[0] === 'src')
|
if ($filePath[0] === 'src')
|
||||||
{
|
{
|
||||||
$repofilename = str_replace('src/', '', $file->filename);
|
$prodfilename = str_replace('src/', '', $file->filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
$parsedFiles[] = (object) array(
|
$parsedFiles[] = (object) array(
|
||||||
'action' => $file->status,
|
'action' => $file->status,
|
||||||
'filename' => $file->filename,
|
'filename' => $prodfilename,
|
||||||
'repofilename' => $repofilename,
|
'repofilename' => $file->filename,
|
||||||
'fileurl' => $file->contents_url,
|
'fileurl' => $file->contents_url,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user