aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/pageutils.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/pageutils.php')
-rw-r--r--inc/pageutils.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/pageutils.php b/inc/pageutils.php
index 6bbfdb7cf..8540d227e 100644
--- a/inc/pageutils.php
+++ b/inc/pageutils.php
@@ -466,7 +466,7 @@ function resolve_id($ns,$id,$clean=true){
// relative stuff
if($id && $id[0] == '.'){
// normalize initial dots without a colon
- $id = preg_replace('/^(\.+)(?=[^:\.])/','\1:',$id);
+ $id = preg_replace('/^((\.+:)*)(\.+)(?=[^:\.])/','\1\3:',$id);
// prepend the current namespace
$id = $ns.':'.$id;