Fix deprecated function use in index.php.