Skip to content

Commit 11baad3

Browse files
xh3n1samtuke
authored andcommitted
Use fullname of filename as pattern
Signed-off-by: Xheni Myrtaj <[email protected]>
1 parent 3d659cb commit 11baad3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

public_html/lists/admin/upgrade.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ 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-
$pattern = "1.12.1.min.js";
179-
$replacement = "min.js";
178+
$pattern = "jquery-1.12.1.min.js";
179+
$replacement = "jquery.min.js";
180180

181181
// Replace jQuery version in config table.
182182
$oldConfigFooter = getConfig('pagefooter');
@@ -194,7 +194,6 @@ function output($message)
194194
Sql_Query(sprintf('update %s set data = "%s" where data = "%s" ', $GLOBALS['tables']['subscribepage_data'], sql_escape($newFooter), addslashes($value)));
195195
}
196196
}
197-
198197
//# remember whether we've done this, to avoid doing it every time
199198
//# even thought that's not such a big deal
200199
$isUTF8 = getConfig('UTF8converted');

0 commit comments

Comments
 (0)