mirror of
https://github.com/flynx/pWiki.git
synced 2025-12-20 10:01:39 +00:00
bugfix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
f94aef1360
commit
aecc0b6cac
@ -747,7 +747,7 @@ object.Constructor('Page', BasePage, {
|
||||
seen.has(full) ?
|
||||
'direct'
|
||||
: 'depth-limit'
|
||||
} recursion detected:`, seen)
|
||||
} recursion detected:`, full, seen)
|
||||
yield page.get(page.RECURSION_ERROR).parse()
|
||||
continue }
|
||||
// have the 'recursive' arg...
|
||||
|
||||
@ -110,6 +110,7 @@ module.BaseStore = {
|
||||
// local paths...
|
||||
__paths: cached('paths', async function(){
|
||||
return this.__paths__() }),
|
||||
// NOTE: this produces an unsorted list...
|
||||
// XXX should this also be cached???
|
||||
paths: async function(local=false){
|
||||
return this.__paths()
|
||||
@ -288,7 +289,11 @@ module.BaseStore = {
|
||||
m
|
||||
&& (!strict
|
||||
|| m[0] == p)
|
||||
&& res.add(m[0])
|
||||
&& res.add(
|
||||
// normalize the path elements...
|
||||
m[0][0] == '/' ?
|
||||
m[0].slice(1)
|
||||
: m[0])
|
||||
return res }, new Set())]
|
||||
.sortAs(order) }
|
||||
// direct search...
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user