diff options
author | redmatrix <git@macgirvin.com> | 2016-04-26 16:12:31 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-04-26 16:12:31 -0700 |
commit | f99daf8ff9b3cd9c0ad61f9fcfec04c6c4042a59 (patch) | |
tree | b03a1659f3811475b5342f5c6aa56ffcca14f77b /boot.php | |
parent | e508ad37c15a5c3c10bf0e6c117fe24859892acf (diff) | |
download | volse-hubzilla-f99daf8ff9b3cd9c0ad61f9fcfec04c6c4042a59.tar.gz volse-hubzilla-f99daf8ff9b3cd9c0ad61f9fcfec04c6c4042a59.tar.bz2 volse-hubzilla-f99daf8ff9b3cd9c0ad61f9fcfec04c6c4042a59.zip |
move iconfig functions to include/config.php with all the rest of the configs, fix an issue with singleton discovery and start work on singleton delivery
Diffstat (limited to 'boot.php')
-rwxr-xr-x | boot.php | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -47,7 +47,7 @@ require_once('include/account.php'); define ( 'PLATFORM_NAME', 'hubzilla' ); define ( 'RED_VERSION', trim(file_get_contents('version.inc'))); -define ( 'STD_VERSION', '1.4.3' ); +define ( 'STD_VERSION', '1.4.4' ); define ( 'ZOT_REVISION', 1 ); define ( 'DB_UPDATE_VERSION', 1166 ); @@ -1543,6 +1543,19 @@ function fix_system_urls($oldurl, $newurl) { intval($c[0]['channel_id']) ); + $m = q("select abook_id, abook_instance from abook where abook_instance like '%s' and abook_channel = %d", + dbesc('%' . $oldurl . '%'), + intval($c[0]['channel_id']) + ); + if($m) { + foreach($m as $mm) { + q("update abook set abook_instance = '%s' where abook_id = %d", + dbesc(str_replace($oldurl,$newurl,$mm['abook_instance'])), + intval($mm['abook_id']) + ); + } + } + proc_run('php', 'include/notifier.php', 'refresh_all', $c[0]['channel_id']); } } |