changeset 3978:76dfe53612a0

fix manipulaion of interwiki on gui editor problem
author Byeongweon [tasyblue@gmail.com]
date Wed, 23 Jul 2008 15:40:32 +0900
parents 07d73a42f555
children 0b1d6e252e1f
files MoinMoin/converter/text_html_text_moin_wiki.py wiki/htdocs/applets/moinFCKplugins/moinlink/fck_link.js
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/converter/text_html_text_moin_wiki.py	Wed Jul 23 13:50:20 2008 +0900
+++ b/MoinMoin/converter/text_html_text_moin_wiki.py	Wed Jul 23 15:40:32 2008 +0900
@@ -1166,7 +1166,7 @@
             elif css_class == "badinterwiki" and title:
                 if href == "/": # we used this as replacement for empty href
                     href = ""
-                pagename = wikiutil.url_unquote(href)
+                pagename = wikiutil.url_unquote(href.lstrip('/'))
                 interwikiname = "%s:%s" % (title, pagename)
             if interwikiname and pagename == desc:
                 if ' ' in interwikiname:
--- a/wiki/htdocs/applets/moinFCKplugins/moinlink/fck_link.js	Wed Jul 23 13:50:20 2008 +0900
+++ b/wiki/htdocs/applets/moinFCKplugins/moinlink/fck_link.js	Wed Jul 23 15:40:32 2008 +0900
@@ -273,7 +273,7 @@
  }
  else   // Creating a new link.
  {
-  oLink = oEditor.FCK.CreateLink(sUri);
+  oLink = oEditor.FCK.CreateLink(sUri)[0];
   if (! oLink)
   {
     oLink = oEditor.FCK.CreateElement('A');