diff options
Diffstat (limited to 'http')
-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']); |