From 7894f6132c203bf50f389b88f10b1bd23ade9a70 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 29 Jan 2021 17:24:56 +0100 Subject: [PATCH] Drush_Update_2021-01-29_17_24 --- initialize/PhpErrorSettings.inc.php | 2 ++ initialize/ini.inc.php | 10 +++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) 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: