Mercurial > moin > 1.9
changeset 3086:dafb1b4e75e5
theme code: use url_schemas from config
author | Thomas Waldmann <tw AT waldmann-edv DOT de> |
---|---|
date | Sat, 23 Feb 2008 00:32:35 +0100 |
parents | fdb68a8f92da |
children | bae6d6881b86 |
files | MoinMoin/theme/__init__.py |
diffstat | 1 files changed, 2 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/MoinMoin/theme/__init__.py Sat Feb 23 00:28:53 2008 +0100 +++ b/MoinMoin/theme/__init__.py Sat Feb 23 00:32:35 2008 +0100 @@ -293,10 +293,6 @@ html = u'<ul id="username">%s</ul>' % ''.join(userlinks) return html - # Schemas supported in toolbar links, using [url label] format - linkSchemas = [r'http://', r'https://', r'ftp://', 'mailto:', r'irc://', r'ircs://', ] + \ - [x + ':' for x in config.url_schemas] - def splitNavilink(self, text, localize=1): """ Split navibar links into pagename, link to page @@ -334,8 +330,8 @@ else: pagename = text - for scheme in self.linkSchemas: - if pagename.startswith(scheme): + for scheme in config.url_schemas: + if pagename.startswith(scheme + ':'): if not title: title = pagename title = wikiutil.escape(title)