From 6e103c4c1bb4cd619a91a8b043d17fe649a7fccd Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 4 Apr 2012 19:16:19 +0000 Subject: [PATCH] Get images named like appname/imagename working again --- phpgwapi/js/jsapi/egw_images.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/js/jsapi/egw_images.js b/phpgwapi/js/jsapi/egw_images.js index 2319b6b181..7219eb1b51 100644 --- a/phpgwapi/js/jsapi/egw_images.js +++ b/phpgwapi/js/jsapi/egw_images.js @@ -56,9 +56,9 @@ egw.extend('images', egw.MODULE_GLOBAL, function() { // If this.getAppName does not work, try to determine the image // by looking at the image path. - if(!_app && _name.indexOf('/') > 0) + if((!_app || _name.indexOf(_app+'/') == 0) && _name.indexOf('/') > 0) { - var split = et2_csvSplit(_value, 2,"/"); + var split = et2_csvSplit(_name, 2,"/"); var _app = split[0]; _name = split[1]; }