Fix compatibility with php-5.x.
[www.energie.vellum.cz.git] / config.php
index 644ff50..45301fd 100644 (file)
@@ -4,7 +4,7 @@
        # All CVS mails now go to $admin_mail
        #$cvs_mailhost="vellum.cz";
        $mail_to="web-www.energie.vellum.cz@jankratochvil.net,karel.kratochvil@centrum.cz";
-       $viewcvs=ereg_replace("^/","http://cvs.jankratochvil.net/viewcvs/energie/",$HTTP_SERVER_VARS["SCRIPT_NAME"]);
+       $viewcvs=ereg_replace("^/","http://cvs.jankratochvil.net/viewcvs/energie/",$_SERVER["SCRIPT_NAME"]);
        $title_prefix="Energie & peníze";
        $detect_ent=false;      // used only for w3.org footer, not worth the cost