Skip to content

Commit aa38f90

Browse files
committed
Add comments
1 parent 6089b33 commit aa38f90

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

public_html/lists/admin/upgrade.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,12 +175,14 @@ function output($message)
175175
// Update jQuery version referenced in public page HTML stored in the database
176176
if (version_compare($dbversion, '3.4.1', '<')) {
177177

178+
// The new filename does not hard-code the jQuery version number
178179
$replacement = "jquery.min.js";
179180

180-
// Replace jQuery version in config table.
181+
// Replace jQuery version public page footers in config table
181182
$oldConfigFooter = getConfig('pagefooter');
182183
$matches = null;
183184

185+
// Find and replace all references to version-specific jQuery files
184186
preg_match('/jquery-3.3.1.min.js/', $oldConfigFooter, $matches);
185187
if ($matches[0] == "jquery-3.3.1.min.js") {
186188
$pattern = "jquery-3.3.1.min.js";
@@ -197,6 +199,8 @@ function output($message)
197199
while ($row = Sql_Fetch_Assoc($req)) {
198200
$footersArray[] = $row['data'];
199201
}
202+
203+
// Find and replace all references to version-specific jQuery files
200204
foreach ($footersArray as $key => $value) {
201205
preg_match('/jquery-3.3.1.min.js/', $value, $matches);
202206
if ($matches[0] == "jquery-3.3.1.min.js") {

0 commit comments

Comments
 (0)