another issue with site rename
This commit is contained in:
parent
22746dd14c
commit
4925f7fc53
4
boot.php
4
boot.php
@ -1284,8 +1284,8 @@ function fix_system_urls($oldurl,$newurl) {
|
||||
// that they can clean up their hubloc tables (this includes directories).
|
||||
// It's a very expensive operation so you don't want to have to do it often or after your site gets to be large.
|
||||
|
||||
$r = q("select * from xchan left join channel on channel_hash = xchan_hash where xchan_url = '%s'",
|
||||
dbesc($oldurl)
|
||||
$r = q("select * from xchan left join channel on channel_hash = xchan_hash where xchan_url like '%s'",
|
||||
dbesc($oldurl . '%')
|
||||
);
|
||||
if($r) {
|
||||
foreach($r as $rr) {
|
||||
|
Reference in New Issue
Block a user