31
0
mirror of https://github.com/joomla-extensions/patchtester.git synced 2024-09-28 20:49:00 +00:00

prodFileName

This commit is contained in:
zero-24 2016-07-31 10:45:42 +02:00
parent a7cc928767
commit 498ffb86e3

View File

@ -95,18 +95,18 @@ class PullModel extends \JModelDatabase
} }
// Sometimes the repo filename is not the production file name // Sometimes the repo filename is not the production file name
$prodfilename = $file->filename; $prodFileName = $file->filename;
$filePath = explode('/', $prodfilename); $filePath = explode('/', $prodFileName);
// Remove the `src` here to match the CMS paths if needed // Remove the `src` here to match the CMS paths if needed
if ($filePath[0] === 'src') if ($filePath[0] === 'src')
{ {
$prodfilename = str_replace('src/', '', $prodfilename); $prodFileName = str_replace('src/', '', $prodFileName);
} }
$parsedFiles[] = (object) array( $parsedFiles[] = (object) array(
'action' => $file->status, 'action' => $file->status,
'filename' => $prodfilename, 'filename' => $prodFileName,
'repofilename' => $file->filename, 'repofilename' => $file->filename,
'fileurl' => $file->contents_url, 'fileurl' => $file->contents_url,
); );