File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff 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 " ) {
You can’t perform that action at this time.
0 commit comments