From c60cf76639a77e5296d79d45cf76489b719ab7ba Mon Sep 17 00:00:00 2001 From: Xelio Date: Tue, 26 Mar 2013 04:02:34 +0800 Subject: [PATCH] Plugin Show Linked Portals: Use default portal image if linked portal has no image --- plugins/show-linked-portals.user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/show-linked-portals.user.js b/plugins/show-linked-portals.user.js index 0c0d3690..99b4f27d 100644 --- a/plugins/show-linked-portals.user.js +++ b/plugins/show-linked-portals.user.js @@ -79,7 +79,7 @@ window.plugin.showLinkedPortal.getPortalByGuid = function (guid) { portalInfoString = ''; var portalNameAdressAlt = "'" + portalDetails.portalV2.descriptiveText.TITLE + "' (" + portalDetails.portalV2.descriptiveText.ADDRESS + ")"; var portalNameAdressTitle = "'" + portalDetails.portalV2.descriptiveText.TITLE + "'
(" + portalDetails.portalV2.descriptiveText.ADDRESS + ")"; - var imageUrl = (portalDetails.imageByUrl ? portalDetails.imageByUrl.imageUrl : ''); + var imageUrl = (portalDetails.imageByUrl ? portalDetails.imageByUrl.imageUrl : window.DEFAULT_PORTAL_IMG); portalInfoString = '' + portalNameAdressAlt + ''; } return portalInfoString;