adds a warning about deprecated configuration parameter ENCODING
This commit is contained in:
@@ -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');
|
@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
|
// the encoding of the HTML output
|
||||||
@define('OUTPUT_ENCODING','UTF-8');
|
@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
|
// number of bib items per page
|
||||||
// we use the same parameter 'num' as Google
|
// we use the same parameter 'num' as Google
|
||||||
@define('PAGE_SIZE',isset($_GET['num'])?(preg_match('/^\d+$/',$_GET['num'])?$_GET['num']:10000):14);
|
@define('PAGE_SIZE',isset($_GET['num'])?(preg_match('/^\d+$/',$_GET['num'])?$_GET['num']:10000):14);
|
||||||
|
|||||||
Reference in New Issue
Block a user