From d6fbbd6ab6f429b1598cfbf93910606597ce94a9 Mon Sep 17 00:00:00 2001 From: Richard Fairhurst Date: Tue, 20 Aug 2013 13:07:42 +0100 Subject: [PATCH] Default to OpenStreetMap site name --- net/systemeD/potlatch2/help/HelpDialog.mxml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/net/systemeD/potlatch2/help/HelpDialog.mxml b/net/systemeD/potlatch2/help/HelpDialog.mxml index d774414e..ad32742f 100644 --- a/net/systemeD/potlatch2/help/HelpDialog.mxml +++ b/net/systemeD/potlatch2/help/HelpDialog.mxml @@ -56,16 +56,14 @@ } private function getIntroText():String { - var site_name:String = loaderInfo.parameters["site_name"]; + var site_name:String = loaderInfo.parameters["site_name"] || "OpenStreetMap"; var browser:String = String(ExternalInterface.call("function() {return navigator.userAgent;}")).toLowerCase(); var intro:String = ''; if (site_name=='OpenStreetMap' && browser.indexOf('msie')==-1) { intro+="

New user? There's now an easier first-time editor you can try instead of this. Click the triangle by the Edit menu and select 'iD'.

"; } - intro+="

Potlatch 2 is an intermediate-level OpenStreetMap (OSM) editor that allows you to make edits directly through "; - if (site_name) { intro+="the " + site_name + " website.

"; } - else { intro+="this website.

"; } + intro+="

Potlatch 2 is an intermediate-level OpenStreetMap (OSM) editor that allows you to make edits directly through the " + site_name + " website.

"; return intro; } -- 2.37.0