adds a warning about deprecated configuration parameter ENCODING

This commit is contained in:
Martin Monperrus
2015-10-07 23:15:27 +02:00
parent 9c1f03e12a
commit 731b0a976e
+6
View File
@@ -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);