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) ?
|
seen.has(full) ?
|
||||||
'direct'
|
'direct'
|
||||||
: 'depth-limit'
|
: 'depth-limit'
|
||||||
} recursion detected:`, seen)
|
} recursion detected:`, full, seen)
|
||||||
yield page.get(page.RECURSION_ERROR).parse()
|
yield page.get(page.RECURSION_ERROR).parse()
|
||||||
continue }
|
continue }
|
||||||
// have the 'recursive' arg...
|
// have the 'recursive' arg...
|
||||||
|
|||||||
@ -110,6 +110,7 @@ module.BaseStore = {
|
|||||||
// local paths...
|
// local paths...
|
||||||
__paths: cached('paths', async function(){
|
__paths: cached('paths', async function(){
|
||||||
return this.__paths__() }),
|
return this.__paths__() }),
|
||||||
|
// NOTE: this produces an unsorted list...
|
||||||
// XXX should this also be cached???
|
// XXX should this also be cached???
|
||||||
paths: async function(local=false){
|
paths: async function(local=false){
|
||||||
return this.__paths()
|
return this.__paths()
|
||||||
@ -288,7 +289,11 @@ module.BaseStore = {
|
|||||||
m
|
m
|
||||||
&& (!strict
|
&& (!strict
|
||||||
|| m[0] == p)
|
|| 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())]
|
return res }, new Set())]
|
||||||
.sortAs(order) }
|
.sortAs(order) }
|
||||||
// direct search...
|
// direct search...
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user