mirror of
https://github.com/flynx/pWiki.git
synced 2025-10-29 10:00:08 +00:00
minor fix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
4c1d548a5f
commit
5b09be40c6
@ -1671,12 +1671,14 @@ object.Constructor('Page', BasePage, {
|
||||
var parent_seen = state[key]
|
||||
var seen = state[key] =
|
||||
(state[key] ?? [this.location]).slice()
|
||||
var target = this.match(src)
|
||||
//var target = this.match(src)
|
||||
var target = this.resolve(src)
|
||||
target = target instanceof Array ?
|
||||
target.join(',')
|
||||
: target
|
||||
// recursion detected...
|
||||
if(this.match() == this.match(src)
|
||||
//if(this.match() == this.match(src)
|
||||
if(this.resolve() == this.resolve(src)
|
||||
|| seen.includes(src)){
|
||||
//* XXX this prevents recursion...
|
||||
if(!recursive){
|
||||
@ -2062,7 +2064,7 @@ var System = {
|
||||
|
||||
// XXX this can be a list for pattern paths...
|
||||
resolved: function(){
|
||||
return this.get('..').match() },
|
||||
return this.get('..').resolve() },
|
||||
|
||||
title: function(){
|
||||
var p = this.get('..')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user