Updated constructor to instance the UrlShortner
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@132160 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
703d4220e5
commit
43be5a4caa
|
@ -347,7 +347,7 @@ public class WsUtil {
|
||||||
shortener = (UrlShortener) session.getAttribute(WsUtil.URL_SHORTENER_SERVICE);
|
shortener = (UrlShortener) session.getAttribute(WsUtil.URL_SHORTENER_SERVICE);
|
||||||
|
|
||||||
if(shortener==null){
|
if(shortener==null){
|
||||||
shortener = new UrlShortener(session.getScope().toString());
|
shortener = new UrlShortener();
|
||||||
session.setAttribute(URL_SHORTENER_SERVICE, shortener);
|
session.setAttribute(URL_SHORTENER_SERVICE, shortener);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue