From: Sarah Hoffmann Date: Wed, 25 Sep 2013 21:07:57 +0000 (+0200) Subject: Merge remote-tracking branch 'upstream/master' X-Git-Tag: deploy~573 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/4563750453ede7af40a7ffd75c90327f4e56bff8?hp=c371bbcfe45904ab56ece73f709b75e5ef6502fd Merge remote-tracking branch 'upstream/master' --- diff --git a/lib/template/details-html.php b/lib/template/details-html.php index ba41b931..83df4814 100644 --- a/lib/template/details-html.php +++ b/lib/template/details-html.php @@ -80,7 +80,7 @@ echo '

'; if ($aPointDetails['icon']) { - echo ''; + echo ''.$aPointDetails['icon'].''; } echo $aPointDetails['localname'].'

'; echo '
'; diff --git a/utils/update.php b/utils/update.php index 270850f9..9a509fdf 100755 --- a/utils/update.php +++ b/utils/update.php @@ -446,7 +446,7 @@ if ($iErrorLevel) { echo "Error: $iErrorLevel\n"; - exit; + exit($iErrorLevel); } echo "Completed for $sBatchEnd in ".round((time()-$fCMDStartTime)/60,2)." minutes\n"; $sSQL = "INSERT INTO import_osmosis_log values ('$sBatchEnd',$iFileSize,'".date('Y-m-d H:i:s',$fCMDStartTime)."','".date('Y-m-d H:i:s')."','osm2pgsql')"; @@ -478,7 +478,7 @@ if (PEAR::isError($iFileID)) { echo $iFileID->getMessage()."\n"; - exit; + exit(-1); } $sFileDir = CONST_BasePath.'/export/diff/'; $sFileDir .= str_pad(floor($iFileID/1000000), 3, '0', STR_PAD_LEFT); @@ -504,7 +504,7 @@ if ($iErrorLevel) { echo "Error: $iErrorLevel\n"; - exit; + exit($iErrorLevel); } if (!$aResult['no-npi']) @@ -519,7 +519,7 @@ if ($iErrorLevel) { echo "Error: $iErrorLevel\n"; - exit; + exit($iErrorLevel); } rename($sFileDir.'/'.str_pad($iFileID % 1000, 3, '0', STR_PAD_LEFT).".npi.out.bz2",