From: x2000habouzit Date: Wed, 19 Jul 2006 21:52:55 +0000 (+0000) Subject: remove more wiki code, fix redirect if there is a trailing / X-Git-Tag: xorg/0.9.11~354 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=8929b42e005c5708d72fa7d9186ad6dfce18d3ac;p=platal.git remove more wiki code, fix redirect if there is a trailing / git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@549 839d8a87-29fc-0310-9880-83ba4fa771e5 --- diff --git a/hooks/wiki.inc.php b/hooks/wiki.inc.php deleted file mode 100644 index b131f24..0000000 --- a/hooks/wiki.inc.php +++ /dev/null @@ -1,43 +0,0 @@ -wiki = new WikiConfig; -} - -// }}} - -?> diff --git a/include/wiki.inc.php b/include/wiki.inc.php index dbb7810..7485093 100644 --- a/include/wiki.inc.php +++ b/include/wiki.inc.php @@ -24,7 +24,7 @@ function wiki_pagename() { return null; } - $words = explode('/', Env::get('n')); + $words = explode('/', trim(Env::get('n'), '/')); if (count($words) == 2) { return join('.', $words); }