From fe7ec534877a4f402cfa7aeb201d32ef14e324e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Tue, 7 Jan 2014 06:24:06 +0100 Subject: [PATCH] Remove unneeded constants. --- OPDS_renderer.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/OPDS_renderer.php b/OPDS_renderer.php index cbd9212..097a3e3 100644 --- a/OPDS_renderer.php +++ b/OPDS_renderer.php @@ -10,9 +10,6 @@ require_once ("base.php"); class OPDSRenderer { - const PAGE_OPENSEARCH = "8"; - const PAGE_OPENSEARCH_QUERY = "9"; - private $xmlStream = NULL; private $updated = NULL; @@ -130,7 +127,7 @@ class OPDSRenderer if (!is_null (GetUrlParam (DB))) $urlparam = addURLParameter ($urlparam, DB, GetUrlParam (DB)); if ($config['cops_generate_invalid_opds_stream'] == 0 || preg_match("/(MantanoReader|FBReader)/", $_SERVER['HTTP_USER_AGENT'])) { // Good and compliant way of handling search - $urlparam = addURLParameter ($urlparam, "page", self::PAGE_OPENSEARCH); + $urlparam = addURLParameter ($urlparam, "page", Base::PAGE_OPENSEARCH); $link = new Link ("feed.php" . $urlparam, "application/opensearchdescription+xml", "search", "Search here"); } else