From 731b0a976ea5b429096ae924d588c47cccc39ba1 Mon Sep 17 00:00:00 2001 From: Martin Monperrus Date: Wed, 7 Oct 2015 23:14:41 +0200 Subject: [PATCH] adds a warning about deprecated configuration parameter ENCODING --- bibtexbrowser.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bibtexbrowser.php b/bibtexbrowser.php index 6d027e7..c134df1 100755 --- a/bibtexbrowser.php +++ b/bibtexbrowser.php @@ -41,6 +41,12 @@ function bibtexbrowser_configure($key, $value) { @define('BIBTEX_INPUT_ENCODING','UTF-8');//@define('BIBTEX_INPUT_ENCODING','iso-8859-1');//define('BIBTEX_INPUT_ENCODING','windows-1252'); // the encoding of the HTML output @define('OUTPUT_ENCODING','UTF-8'); + +// print a warning if deprecated variable is used +if (defined('ENCODING')) { + echo 'ENCODING has been replaced by BIBTEX_INPUT_ENCODING and OUTPUT_ENCODING'; +} + // number of bib items per page // we use the same parameter 'num' as Google @define('PAGE_SIZE',isset($_GET['num'])?(preg_match('/^\d+$/',$_GET['num'])?$_GET['num']:10000):14);