Skip to content

Commit

Permalink
Simplify path lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-H committed Mar 27, 2023
1 parent 889a23b commit dc73b74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _build/build.schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
define('PKG_NAME', 'Commerce_Projectname');
define('PKG_NAME_LOWER', strtolower(PKG_NAME));

require_once dirname(dirname(__FILE__)) . '/config.core.php';
require_once dirname(__DIR__) . '/config.core.php';
include_once MODX_CORE_PATH . 'model/modx/modx.class.php';
$modx= new modX();
$modx->initialize('mgr');
$modx->loadClass('transport.modPackageBuilder','',false, true);
$modx->setLogLevel(modX::LOG_LEVEL_INFO);
$modx->setLogTarget(XPDO_CLI_MODE ? 'ECHO' : 'HTML');

$root = dirname(dirname(__FILE__)).'/';
$root = dirname(__DIR__) . '/';
$sources = array(
'root' => $root,
'core' => $root.'core/components/commerce_projectname/',
Expand Down

0 comments on commit dc73b74

Please sign in to comment.