Skip to content

Commit fe3071b

Browse files
shinderohanofficalmanojLondhe
authored andcommitted
Bug #139457 fix: Warning Install path does not exist. (#41)
* Bug #139457 fix: Warning Install path does not exist. Package Update: There was an error installing an extension: com_tjnotification.zip × Error Error installing package * Bug #139457 fix: Warning Install path does not exist. Package Update: There was an error installing an extension: com_tjnotification.zip × Error Error installing package
1 parent e60e48b commit fe3071b

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

src/com_tjnotifications/install.tjnotification.php renamed to src/com_tjnotifications/install.tjnotifications.php

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ class Com_TjnotificationsInstallerScript
3131
/** @var array Obsolete files and folders to remove*/
3232
private $removeFilesAndFolders = array(
3333
'files' => array(
34-
'administrator/components/com_tjnotifications/tjnotifications.xml'
3534
),
3635
'folders' => array(
3736
)
@@ -395,12 +394,10 @@ private function removeObsoleteFilesAndFolders($removeFilesAndFolders)
395394
{
396395
$f = JPATH_ROOT . '/' . $file;
397396

398-
if (!JFile::exists($f))
397+
if (JFile::exists($f))
399398
{
400-
continue;
399+
JFile::delete($f);
401400
}
402-
403-
JFile::delete($f);
404401
}
405402
}
406403

@@ -411,12 +408,10 @@ private function removeObsoleteFilesAndFolders($removeFilesAndFolders)
411408
{
412409
$f = JPATH_ROOT . '/' . $folder;
413410

414-
if (!JFolder::exists($f))
411+
if (JFolder::exists($f))
415412
{
416-
continue;
413+
JFolder::delete($f);
417414
}
418-
419-
JFolder::delete($f);
420415
}
421416
}
422417
}
File renamed without changes.

src/com_tjnotifications/tjnotifications.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<folder>controllers</folder>
2929
</files>
3030
<languages folder="site/language">
31-
<language tag="en-GB">en-GB.com_tjnotification.ini</language>
31+
<language tag="en-GB">en-GB.com_tjnotifications.ini</language>
3232
</languages>
3333
<administration>
3434
<menu>com_tjnotifications</menu>
@@ -49,5 +49,5 @@
4949
<language tag="en-GB">en-GB.com_tjnotifications.sys.ini</language>
5050
</languages>
5151
</administration>
52-
<scriptfile>install.tjnotification.php</scriptfile>
52+
<scriptfile>install.tjnotifications.php</scriptfile>
5353
</extension>

0 commit comments

Comments
 (0)