From d6931e16f79f3a98c735e6d49ac689d0d49f9477 Mon Sep 17 00:00:00 2001 From: mh Date: Wed, 27 Mar 2002 13:21:43 +0000 Subject: [PATCH] source/mir/media/MirMedia.java --- source/mir/misc/StringUtil.java | 32 ------------- source/mircoders/entity/EntityUploadedMedia.java | 13 ++--- source/mircoders/media/MediaHandlerAudio.java | 1 + source/mircoders/media/MediaHandlerGeneric.java | 19 ++++---- source/mircoders/media/MediaHandlerImages.java | 13 ++--- source/mircoders/media/MediaHandlerMp3.java | 5 ++ source/mircoders/media/MediaHandlerRealAudio.java | 5 ++ source/mircoders/media/MediaHandlerRealVideo.java | 5 ++ templates-dist/producer/content.template | 6 +-- templates-dist/producer/openposting.template | 31 ++++++------ templates-dist/producer/startpage.template | 38 ++++++++------- templates-dist/producer/topiclist.template | 58 +++++++++++++---------- 12 files changed, 110 insertions(+), 116 deletions(-) diff --git a/source/mir/misc/StringUtil.java b/source/mir/misc/StringUtil.java index 24de3ab6..a9a9a36b 100755 --- a/source/mir/misc/StringUtil.java +++ b/source/mir/misc/StringUtil.java @@ -980,38 +980,6 @@ public final class StringUtil { return createURLLinks(haystack, title, imageRoot, extImage); } - /** - * this routine takes text in url format and makes - * an image link removing any "illegal" html tags - * @param haystack, the url - * @param title, the image alt text, can be null - * @param height, height of the image - * @param width, width of the image - * @return a String containing the url - */ - public static String createIMGLinks(String haystack, String title, - String height,String width) { - String wh=""; - if ( (height != null) && (width != null) ) - { - wh = "width=\""+width+"\" height=\""+height+"\""; - } - if (title != null) { - title = removeHTMLTags(title); - return re_url.substituteAll(haystack, - "\""+title+"\"/ 
"+ - title+""); - } else { - return re_url.substituteAll(haystack, - "\"\"/ "); - } - } - - /** * deleteForbiddenTags * this method deletes all