diff --git a/initialize/PhpErrorSettings.inc.php b/initialize/PhpErrorSettings.inc.php index b629c3f..828785d 100644 --- a/initialize/PhpErrorSettings.inc.php +++ b/initialize/PhpErrorSettings.inc.php @@ -3,4 +3,6 @@ error_reporting(E_ERROR); //developement //error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE); +error_reporting(E_ERROR | E_WARNING | E_PARSE); + ?> diff --git a/initialize/ini.inc.php b/initialize/ini.inc.php index 3fabbeb..0cb03ef 100644 --- a/initialize/ini.inc.php +++ b/initialize/ini.inc.php @@ -81,7 +81,15 @@ // It will be used within RSS feeds and when sending notification emails to database users. // The base URL is auto-generated by the code below. Enter a literal URL if this doesn't work for // you. - $databaseBaseURL = preg_replace('#[^/]*$#e','','https://'.$_SERVER['HTTP_HOST'].scriptURL(),1); // e.g. "https://polaris.ipoe.uni-kiel.de/refs/" + // original $databaseBaseURL = preg_replace('#[^/]*$#e','','https://'.$_SERVER['HTTP_HOST'].scriptURL(),1); // e.g. "https://polaris.ipoe.uni-kiel.de/refs/" + $databaseBaseURL = preg_replace_callback( + "#[^/]*$#", + function($matches){ + foreach($matches as $match){ + return ucfirst($match); + } + }, + "https://".$_SERVER["HTTP_HOST"].scriptURL(),1); // e.g. "https://polaris.ipoe.uni-kiel.de/refs/" // The keywords/tags that describe or categorize the content of this literature database: