Skip to content

Commit

Permalink
Merge pull request #55 from joomlatools/feature/54-phar
Browse files Browse the repository at this point in the history
Restore phar wrapper for all Joomla versions
  • Loading branch information
ercanozkaya committed Sep 24, 2021
2 parents a288e61 + c3fd849 commit f23a9e0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Joomlatools/Joomla/Bootstrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ protected function _bootstrap()

require_once JPATH_ROOT . '/app/defines.php';
require_once JPATH_ROOT . '/app/bootstrap.php';

require_once JPATH_LIBRARIES . '/import.php';

require_once JPATH_LIBRARIES . '/cms.php';
Expand All @@ -196,9 +196,7 @@ protected function _bootstrap()

require_once JPATH_LIBRARIES . '/cms.php';

if(version_compare(JVERSION, '3.9.0', '>=') && version_compare(JVERSION, '4.0', '<')) {
stream_wrapper_restore('phar');
}
stream_wrapper_restore('phar');
}

$this->_bootstrapped = true;
Expand Down

0 comments on commit f23a9e0

Please sign in to comment.