Skip to content

Commit

Permalink
server-php: api.php now sets correct path constant
Browse files Browse the repository at this point in the history
  • Loading branch information
andersevenrud committed Nov 19, 2016
1 parent b748d8d commit 4f4daf6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/server/php/Core/Instance.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ final public static function run() {
(new Responder())->error('Failed to initialize');
}

define('DIR_DIST', DIR_ROOT . '/' . self::$DIST);
if ( !defined('DIR_DIST') ) {
define('DIR_DIST', DIR_ROOT . '/' . self::$DIST);
}
define('DIR_PACKAGES', DIR_ROOT . '/src/packages');

session_start();
Expand Down
2 changes: 1 addition & 1 deletion src/templates/dist/default/api.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

define("DISTDIR", __DIR__);
define("DIR_DIST", __DIR__);
require __DIR__.'/../src/server/php/server.php';

?>

0 comments on commit 4f4daf6

Please sign in to comment.