Skip to content

Commit

Permalink
some changes based on michaels feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
zero-24 committed Feb 24, 2017
1 parent cf28c74 commit 33bddf5
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions administrator/includes/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
$startTime = microtime(1);
$startMem = memory_get_usage();

if (file_exists(__DIR__ . '/defines.php'))
if (file_exists(dirname(__DIR__) . '/defines.php'))
{
include_once __DIR__ . '/defines.php';
include_once dirname(__DIR__) . '/defines.php';
}

if (!defined('_JDEFINES'))
{
define('JPATH_BASE', __DIR__);
define('JPATH_BASE', dirname(__DIR__));
require_once JPATH_BASE . '/includes/defines.php';
}

Expand Down
2 changes: 1 addition & 1 deletion administrator/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

/**
* Constant that is checked in included files to prevent direct access.
* define() is used in the installation folder rather than "const" to not error for PHP 5.2 and lower
* define() is used rather than "const" to not error for PHP 5.2 and lower
*/
define('_JEXEC', 1);

Expand Down
6 changes: 3 additions & 3 deletions includes/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
$startTime = microtime(1);
$startMem = memory_get_usage();

if (file_exists(__DIR__ . '/defines.php'))
if (file_exists(dirname(__DIR__) . '/defines.php'))
{
include_once __DIR__ . '/defines.php';
include_once dirname(__DIR__) . '/defines.php';
}

if (!defined('_JDEFINES'))
{
define('JPATH_BASE', __DIR__);
define('JPATH_BASE', dirname(__DIR__));
require_once JPATH_BASE . '/includes/defines.php';
}

Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

/**
* Constant that is checked in included files to prevent direct access.
* define() is used in the installation folder rather than "const" to not error for PHP 5.2 and lower
* define() is used rather than "const" to not error for PHP 5.2 and lower
*/
define('_JEXEC', 1);

Expand Down
8 changes: 4 additions & 4 deletions installation/application/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
* @package Joomla.Installation
* @subpackage Application
*
* @copyright Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
* @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

defined('_JEXEC') or die;

// Define the base path and require the other defines
define('JPATH_BASE', __DIR__);
require_once __DIR__ . '/application/defines.php';
require_once __DIR__ . '/defines.php';

// Launch the application
require_once __DIR__ . '/application/framework.php';
require_once __DIR__ . '/framework.php';

// Check if the default log directory can be written to, add a logger for errors to use it
if (is_writable(JPATH_ADMINISTRATOR . '/logs'))
Expand All @@ -33,7 +33,7 @@
JLoader::registerPrefix('Installation', JPATH_INSTALLATION);

// Register the application's router due to non-standard include
JLoader::register('JRouterInstallation', __DIR__ . '/application/router.php');
JLoader::register('JRouterInstallation', __DIR__ . '/router.php');

// Instantiate the dependency injection container
JFactory::$container = (new \Joomla\DI\Container)
Expand Down
2 changes: 1 addition & 1 deletion installation/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

/**
* Constant that is checked in included files to prevent direct access.
* define() is used in the installation folder rather than "const" to not error for PHP 5.2 and lower
* define() is used rather than "const" to not error for PHP 5.2 and lower
*/
define('_JEXEC', 1);

Expand Down

0 comments on commit 33bddf5

Please sign in to comment.