mysql_connect() deprecated
Change-Id: Iec4d6b145655f25234b48eed1b0050fa8f605326
diff --git a/html/process_update_sites.php b/html/process_update_sites.php
index aa88cba..d58f45a 100644
--- a/html/process_update_sites.php
+++ b/html/process_update_sites.php
@@ -51,7 +51,7 @@
INNER JOIN release_train_projects AS r ON r.project_id = m.project_id AND r.version = m.version
INNER JOIN release_trains AS t on t.train_id = r.train_id
WHERE m.is_active = 1 AND m.is_map_file = 0 AND t.is_active = 1";
-$rs_maps = mysql_query($sql, $dbh);
+$rs_maps = mysqli_query($dbh, $sql);
while($update_site = mysql_fetch_assoc($rs_maps)) {
$site_url = $update_site['location'];
$project_id = $update_site['project_id'];
@@ -74,7 +74,7 @@
if (!(isset($files_collected[$project_id]) && isset($files_collected[$project_id][$version]))) {
$files_collected[$project_id][$version] = 1;
$sql = "SELECT * FROM files WHERE project_id = \"$project_id\" AND version = \"$version\"";
- $rs_files = mysql_query($sql, $dbh);
+ $rs_files = mysqli_query($dbh, $sql);
while ($myrow_files = mysql_fetch_assoc($rs_files)) {
$file = new File();
$file->project_id = $myrow_files['project_id'];
@@ -89,7 +89,7 @@
# Collect all plugin exclude patterns for this project version
$sql = "SELECT pattern FROM plugin_exclude_patterns WHERE project_id = \"$project_id\" AND version = \"$version\"";
- $rs_patterns = mysql_query($sql, $dbh);
+ $rs_patterns = mysqli_query($dbh, $sql);
$patterns = Array();
# Add default exclude patterns
$patterns[] = "/^.*\/feature.properties$/";