Subversion Repositories SmartDukaan

Rev

Rev 8777 | Rev 8785 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8777 Rev 8784
Line 118... Line 118...
118
        this.medias = medias;
118
        this.medias = medias;
119
    }
119
    }
120
 
120
 
121
    public Map<String, Media> getMedias() {
121
    public Map<String, Media> getMedias() {
122
    	if (MapUtils.isNotEmpty(medias)){
122
    	if (MapUtils.isNotEmpty(medias)){
123
	    	Map<String, Media> m = new HashMap<String, Media>(); 
123
	    	Map<String, Media> m = new LinkedHashMap<String, Media>(); 
124
	    	for(Map.Entry<String, Media> m1 : medias.entrySet()) {
124
	    	for(Map.Entry<String, Media> m1 : medias.entrySet()) {
125
	    		if(m1.getKey().contains(".")){
125
	    		if(m1.getKey().contains(".")){
126
	    			m.put(m1.getKey().replaceAll("\\.", "-"),m1.getValue());
126
	    			m.put(m1.getKey().replaceAll("\\.", "-"),m1.getValue());
127
	    		}else {
127
	    		}else {
128
	    			m.put(m1.getKey(), m1.getValue());
128
	    			m.put(m1.getKey(), m1.getValue());