File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
administrator/components/com_patchtester/PatchTester/Model Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 88
99namespace PatchTester \Model ;
1010
11- use Joomla \Registry \Registry ;
12-
1311use PatchTester \GitHub \Exception \UnexpectedResponse ;
1412use PatchTester \Helper ;
1513
@@ -74,13 +72,15 @@ protected function parseFileList($files)
7472 {
7573 $ parsedFiles = array ();
7674
75+ /*
76+ * Check if the patch tester is running in a development environment
77+ * If we are not in development, we'll need to check the exclusion lists
78+ */
79+ $ isDev = file_exists (JPATH_INSTALLATION . '/index.php ' );
80+
7781 foreach ($ files as $ file )
7882 {
79- /*
80- * Check if the patch tester is running in a production environment
81- * If so, do not patch certain files as errors will be thrown
82- */
83- if (!file_exists (JPATH_ROOT . '/installation/index.php ' ))
83+ if (!$ isDev )
8484 {
8585 $ filePath = explode ('/ ' , $ file ->filename );
8686
You can’t perform that action at this time.
0 commit comments