Skip to content

Commit

Permalink
allow to use system udan11/sql-parser
Browse files Browse the repository at this point in the history
Signed-off-by: Remi Collet <fedora@famillecollet.com>
  • Loading branch information
remicollet authored and lem9 committed Sep 14, 2015
1 parent ae77949 commit 4185868
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libraries/common.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -1069,7 +1069,7 @@
/**
* Initializes the SQL parsing library.
*/
include_once './libraries/sql-parser/autoload.php';
include_once SQL_PARSER_AUTOLOAD;

// Loads closest context to this version.
SqlParser\Context::loadClosest(
Expand Down
6 changes: 5 additions & 1 deletion libraries/vendor_config.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,13 @@
*/
define('PHPSECLIB_INC_DIR', './libraries/phpseclib/');

/**
* Path to the udan11/sql-parser. Useful when you want to use system version.
*/
define('SQL_PARSER_AUTOLOAD', './libraries/sql-parser/autoload.php');

/**
* Avoid referring to nonexistent files (causes warnings when open_basedir
* is used)
*/
define('K_PATH_IMAGES', '');

0 comments on commit 4185868

Please sign in to comment.