From 76ee1b683d265dfabc3ca27ef3fac91520cc7946 Mon Sep 17 00:00:00 2001 From: Alex Schroeder Date: Sun, 5 Apr 2009 23:36:20 +0000 Subject: [PATCH] (NamespacesInitVariables): Match the code changes in GetId. --- modules/namespaces.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/namespaces.pl b/modules/namespaces.pl index f893b8ed..a1b3c120 100644 --- a/modules/namespaces.pl +++ b/modules/namespaces.pl @@ -36,7 +36,7 @@ be changed using the C<$NamespacesSelf> option. =cut -$ModulesDescription .= '

$Id: namespaces.pl,v 1.42 2009/03/08 23:44:54 as Exp $

'; +$ModulesDescription .= '

$Id: namespaces.pl,v 1.43 2009/04/05 23:36:20 as Exp $

'; use vars qw($NamespacesMain $NamespacesSelf $NamespaceCurrent $NamespaceRoot $NamespaceSlashing); @@ -74,7 +74,8 @@ sub NamespacesInitVariables { if (($UsePathInfo # make sure ordinary page names are not matched! and $q->path_info() =~ m|^/($InterSitePattern)(/.*)?| - and ($2 or $q->param or $q->keywords) + # has to match the code in GetId() + and ($2 or GetParam('id', GetParam('title', $id)) or $q->keywords) and ($1 ne $NamespacesMain) and ($1 ne $NamespacesSelf)) or