summaryrefslogtreecommitdiff
path: root/http
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2015-01-28 11:40:02 +0100
committeremkael <emkael@tlen.pl>2015-01-28 11:40:02 +0100
commit6fc649ae7a5501dd45e78fd44c1805d0d8e003cd (patch)
treee008a9baf4ac767a8d53b6c55c042c891c3fbb45 /http
parent294ade87e85fa65847f87385b6b50f0f8352b51a (diff)
* QueryPath path configurable
Diffstat (limited to 'http')
-rw-r--r--http/index.php3
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']);