Skip to content

Commit

Permalink
[Fix] Travis fail
Browse files Browse the repository at this point in the history
  • Loading branch information
thongredweb committed May 9, 2017
1 parent c8796eb commit f72e2ed
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions component/admin/models/install.php
Expand Up @@ -18,13 +18,6 @@
*/
class RedshopModelInstall extends RedshopModelList
{
/**
* @var string
*
* @since __DEPLOY_VERSION__
*/
protected $updatePath = JPATH_COMPONENT_ADMINISTRATOR . '/updates';

/**
* Method for get all available step of installation.
*
Expand Down Expand Up @@ -53,13 +46,15 @@ public function getSteps($type = 'install')
*/
public function getUpdateSteps()
{
$updatePath = JPATH_COMPONENT_ADMINISTRATOR . '/updates';

// Get available updates class.
if (!is_dir($this->updatePath))
if (!is_dir($updatePath))
{
return array();
}

$files = glob($this->updatePath . '/*.php');
$files = glob($updatePath . '/*.php');
$version = RedshopHelperJoomla::getManifestValue('version');
$classes = array();

Expand Down

0 comments on commit f72e2ed

Please sign in to comment.