|
@@ 601-602 (lines=2) @@
|
| 598 |
|
else |
| 599 |
|
throw new Exception("Could not update the SITEURL and HOME, wp-config.php file not found"); |
| 600 |
|
|
| 601 |
|
if(!$mysqli->query("update ".$table_prefix."options set option_value='".($url)."' where option_name='home'")) |
| 602 |
|
throw new Exception(sprintf("Could not update the HOME option, error: %s\n", $mysqli->error)); |
| 603 |
|
|
| 604 |
|
if(!$mysqli->query("update ".$table_prefix."options set option_value='".($url)."' where option_name='siteurl'")) |
| 605 |
|
throw new Exception(sprintf("Could not update the SITEURL option, error: %s\n", $mysqli->error)); |
|
@@ 604-605 (lines=2) @@
|
| 601 |
|
if(!$mysqli->query("update ".$table_prefix."options set option_value='".($url)."' where option_name='home'")) |
| 602 |
|
throw new Exception(sprintf("Could not update the HOME option, error: %s\n", $mysqli->error)); |
| 603 |
|
|
| 604 |
|
if(!$mysqli->query("update ".$table_prefix."options set option_value='".($url)."' where option_name='siteurl'")) |
| 605 |
|
throw new Exception(sprintf("Could not update the SITEURL option, error: %s\n", $mysqli->error)); |
| 606 |
|
|
| 607 |
|
return true; |
| 608 |
|
} |