Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add joomla framework as phar

  • Loading branch information...
commit ee20ded6aa2660bfdf9ce1448bf34e49469291a3 1 parent fef99cc
@stefanneculai authored
Showing with 9 additions and 7 deletions.
  1. +9 −7 code/bootstrap.php
  2. BIN  libraries/joomla.phar
View
16 code/bootstrap.php
@@ -18,6 +18,14 @@
error_reporting(E_ALL);
ini_set('display_errors', true);
+// Ensure that required path constants are defined.
+if (!defined('JPATH_BASE'))
+{
+ define('JPATH_BASE', realpath(__DIR__));
+}
+
+Phar::loadPhar(realpath(JPATH_BASE . '/../libraries/joomla.phar'));
+
// Define the path for the Joomla Platform.
if (!defined('JPATH_PLATFORM'))
{
@@ -28,17 +36,11 @@
}
else
{
- define('JPATH_PLATFORM', realpath(__DIR__ . '/../../joomla-platform/libraries'));
+ define('JPATH_PLATFORM', 'phar://joomla.phar/libraries');
}
}
// Ensure that required path constants are defined.
-if (!defined('JPATH_BASE'))
-{
- define('JPATH_BASE', realpath(__DIR__));
-}
-
-// Ensure that required path constants are defined.
if (!defined('JPATH_CONFIGURATION'))
{
$path = getenv('WEBSERVICE_CONFIG');
View
BIN  libraries/joomla.phar
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.