From 6fc649ae7a5501dd45e78fd44c1805d0d8e003cd Mon Sep 17 00:00:00 2001 From: emkael Date: Wed, 28 Jan 2015 11:40:02 +0100 Subject: * QueryPath path configurable --- http/index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'http') 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']); -- cgit v1.2.3