From a7cc92876702ea180e318957c7755af5cf342b66 Mon Sep 17 00:00:00 2001 From: zero-24 Date: Sat, 30 Jul 2016 22:13:19 +0200 Subject: [PATCH] fix issues --- .../com_patchtester/PatchTester/Model/PullModel.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/administrator/components/com_patchtester/PatchTester/Model/PullModel.php b/administrator/components/com_patchtester/PatchTester/Model/PullModel.php index ad9448f..df20952 100644 --- a/administrator/components/com_patchtester/PatchTester/Model/PullModel.php +++ b/administrator/components/com_patchtester/PatchTester/Model/PullModel.php @@ -96,12 +96,12 @@ class PullModel extends \JModelDatabase // Sometimes the repo filename is not the production file name $prodfilename = $file->filename; - $filePath = explode('/', $repofilename); + $filePath = explode('/', $prodfilename); // Remove the `src` here to match the CMS paths if needed if ($filePath[0] === 'src') { - $prodfilename = str_replace('src/', '', $file->filename); + $prodfilename = str_replace('src/', '', $prodfilename); } $parsedFiles[] = (object) array(