diff options
author | emkael <emkael@tlen.pl> | 2015-01-28 11:40:02 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2015-01-28 11:40:02 +0100 |
commit | 6fc649ae7a5501dd45e78fd44c1805d0d8e003cd (patch) | |
tree | e008a9baf4ac767a8d53b6c55c042c891c3fbb45 | |
parent | 294ade87e85fa65847f87385b6b50f0f8352b51a (diff) |
* QueryPath path configurable
-rw-r--r-- | http/index.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/http/index.php b/http/index.php index eac2162..e8e18a8 100644 --- a/http/index.php +++ b/http/index.php @@ -3,6 +3,7 @@ define('BASE_PATH', '/'); define('CACHE_PATH', '../cache'); define('CEZAR_URL', 'http://msc.com.pl/cezar/'); +define('QUERYPATH_PATH', '/usr/share/php/QueryPath/QueryPath.php'); // fetch item from content cache function get_cache_content($cacheKey, $url, $force = FALSE) { @@ -62,7 +63,7 @@ if ($path) { die('Malformed (even more than usually) content :('); } - require_once('/usr/share/php/QueryPath/QueryPath.php'); + require_once(QUERYPATH_PATH); $html = htmlqp($content, NULL, ['convert_to_encoding' => 'utf-8']); |