aboutsummaryrefslogtreecommitdiffstats
path: root/functions/init.inc.php
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2017-02-20 18:12:46 +0100
committerDaniel Lange <DLange@git.local>2017-02-20 18:12:46 +0100
commit335d3c5c9c0b24ff5e07cd1968236a8dbc4f2c70 (patch)
tree6dfb123b3ff27b46bcdf9ef9acf8fa41bffec946 /functions/init.inc.php
parent7a4da3f67cb891cd5408bb4b511a54ccf9662485 (diff)
downloadphpicalendar-335d3c5c9c0b24ff5e07cd1968236a8dbc4f2c70.tar.gz
phpicalendar-335d3c5c9c0b24ff5e07cd1968236a8dbc4f2c70.tar.bz2
phpicalendar-335d3c5c9c0b24ff5e07cd1968236a8dbc4f2c70.zip
PHP 7 compatibility from Sourceforge #680
Diffstat (limited to 'functions/init.inc.php')
-rw-r--r--functions/init.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions/init.inc.php b/functions/init.inc.php
index 3ac162b..56e13df 100644
--- a/functions/init.inc.php
+++ b/functions/init.inc.php
@@ -149,7 +149,7 @@ if (count($local_cals) > 0) {
$subscribe_path = 'webcal://'.$_SERVER['SERVER_NAME'].dirname($_SERVER['PHP_SELF']).'/'.$filename;
$download_filename = $filename;
} elseif ($phpiCal_config->download_uri != '') {
- $newurl = eregi_replace("^(http://)", "", $phpiCal_config->download_uri);
+ $newurl = preg_replace("#^(http://)#i", "", $phpiCal_config->download_uri);
$subscribe_path = 'webcal://'.$newurl.'/'.$add_cpath.basename($filename);
$download_filename = $phpiCal_config->download_uri.'/'.$add_cpath.basename($filename);
} else {

© 2014-2024 Faster IT GmbH | imprint | privacy policy