Skip to content

Commit

Permalink
Bug #139457 fix: Warning Install path does not exist. (#41)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
shindebalu authored and manojLondhe committed Jan 17, 2019
1 parent e60e48b commit fe3071b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ class Com_TjnotificationsInstallerScript
/** @var array Obsolete files and folders to remove*/
private $removeFilesAndFolders = array(
'files' => array(
'administrator/components/com_tjnotifications/tjnotifications.xml'
),
'folders' => array(
)
Expand Down Expand Up @@ -395,12 +394,10 @@ private function removeObsoleteFilesAndFolders($removeFilesAndFolders)
{
$f = JPATH_ROOT . '/' . $file;

if (!JFile::exists($f))
if (JFile::exists($f))
{
continue;
JFile::delete($f);
}

JFile::delete($f);
}
}

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

if (!JFolder::exists($f))
if (JFolder::exists($f))
{
continue;
JFolder::delete($f);
}

JFolder::delete($f);
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/com_tjnotifications/tjnotifications.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<folder>controllers</folder>
</files>
<languages folder="site/language">
<language tag="en-GB">en-GB.com_tjnotification.ini</language>
<language tag="en-GB">en-GB.com_tjnotifications.ini</language>
</languages>
<administration>
<menu>com_tjnotifications</menu>
Expand All @@ -49,5 +49,5 @@
<language tag="en-GB">en-GB.com_tjnotifications.sys.ini</language>
</languages>
</administration>
<scriptfile>install.tjnotification.php</scriptfile>
<scriptfile>install.tjnotifications.php</scriptfile>
</extension>

0 comments on commit fe3071b

Please sign in to comment.