[Mediawiki-l] '/' trick in subpage links
Ittay Dror
ittayd at qlusters.com
Wed Jan 24 06:51:16 UTC 2007
putting '/' at the end works by just removing the ../ or / prefixes from the link text. so [[../../a/b/]] becomes a/b. isn't it more logical for it to become 'b'? the meaning of '/' at the end then behaves like 'basename' shell command.
to achieve this, in Parser::maybeDoSubpageLink, i changed the lines '$text=...' to '$text = array_pop(explode('/', ...))'.
--
===================================
Ittay Dror,
Chief architect,
R&D, Qlusters Inc.
ittayd at qlusters.com
+972-3-6081994 Fax: +972-3-6081841
www.openqrm.org - Data Center Provisioning
More information about the MediaWiki-l
mailing list