mirror of
				https://github.com/flynx/pWiki.git
				synced 2025-10-30 18:40:08 +00:00 
			
		
		
		
	bugfix + notes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									365b6ad319
								
							
						
					
					
						commit
						3d1598052a
					
				| @ -568,10 +568,13 @@ module.MetaStore = { | ||||
| 		var store = Object.keys(this.substores ?? {}) | ||||
| 			// normalize store paths to the given path...
 | ||||
| 			.filter(function(p){ | ||||
| 				return path.startsWith( | ||||
| 					root ?  | ||||
| 				p = root ? | ||||
| 					'/'+p | ||||
| 						: p) }) | ||||
| 					: p | ||||
| 				return path.startsWith(p) | ||||
| 		   			&& (path[p.length] == null | ||||
| 						|| path[p.length] == '/' | ||||
| 						|| path[p.length] == '\\')}) | ||||
| 			.sort(function(a, b){ | ||||
| 				return a.length - b.length }) | ||||
| 			.pop()  | ||||
|  | ||||
							
								
								
									
										14
									
								
								pwiki2.js
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								pwiki2.js
									
									
									
									
									
								
							| @ -1,14 +1,12 @@ | ||||
| /********************************************************************** | ||||
| *  | ||||
| * | ||||
| * XXX BUG: for some reason pwiki.get('/TestPage').raw does nothing when  | ||||
| * 		the root store is not BaseStore... | ||||
| * 		...the cause is: | ||||
| * 			pwiki.store.substore('/TestPage') -> 'Test' | ||||
| * 		should be: | ||||
| * 			pwiki.store.substore('/TestPage') -> undefined | ||||
| * XXX BUG service pages (*Error) now print "[ native code ]" instead of  | ||||
| * 		the path and replacing @quote(..) with @source(..) breaks things...   | ||||
| * XXX BUG with non-BaseStore root, the paths under /Test/.. report  | ||||
| * 		recursion errors when rendered by /tree... | ||||
| * 			/Test/tree	-- works fine | ||||
| * XXX BUG service pages (NotFoundError, RecursionError, ...) now print  | ||||
| * 		"[ native code ]" instead of the path and replacing @quote(..)  | ||||
| * 		with @source(..) breaks things...   | ||||
| * 		...this seems to happen only if the root store is not  | ||||
| * 		MetaStore/BaseStore... | ||||
| * XXX BUG: .get(..) does not seem to resolve to <store>.next... | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user