Skip to content

Commit

Permalink
fix phar
Browse files Browse the repository at this point in the history
  • Loading branch information
aurelien-riv committed May 16, 2018
1 parent d1a217c commit b7e8348
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/DBCheckerConstants.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
<?php

define("DBCHECKER_VAR_DIR", __DIR__."/../var/");
$dir = Phar::running(false);
if (empty($dir))
{
$dir = __DIR__;
}
define("DBCHECKER_VAR_DIR", "$dir/../var/");

if (! is_dir(DBCHECKER_VAR_DIR))
{
Expand Down

0 comments on commit b7e8348

Please sign in to comment.