diff MoinMoin/PageGraphicalEditor.py @ 4579:87d97510de79

getScriptname() -> script_root, getBaseURL() -> url_root (for werkzeug API)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 15 Feb 2009 01:37:51 +0100
parents 331686d6b068
children 268004c7b206
line wrap: on
line diff
--- a/MoinMoin/PageGraphicalEditor.py	Sat Feb 14 23:47:37 2009 +0100
+++ b/MoinMoin/PageGraphicalEditor.py	Sun Feb 15 01:37:51 2009 +0100
@@ -313,9 +313,7 @@
         url_prefix_local = request.cfg.url_prefix_local
         wikipage = wikiutil.quoteWikinameURL(self.page_name)
         fckbasepath = url_prefix_local + '/applets/FCKeditor'
-        wikiurl = request.script_root
-        if not wikiurl or wikiurl[-1] != '/':
-            wikiurl += '/'
+        wikiurl = request.script_root + '/'
         themepath = '%s/%s' % (url_prefix_static, request.theme.name)
         smileypath = themepath + '/img'
         # auto-generating a list for SmileyImages does NOT work from here!