fix locks, deletion, publisching options and more
| Project: | wgHTML |
| Version: | 5.x-1.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | djnz |
| Status: | active |
Jump to:
attached is a patch against wghtml-5.x-1.0.tar.gz that fixes multiple issues i ran into with its behavior:
* class_wghtml.php: silence status messages, as long as everything went ok.
* implement_node_drupal46.php: added drop_page() to delete pages from database.
save_page(): fixed database locking.
make_node(): initialize node publishing options and comments from node type 'wghtml' if this has been setup by the site administrator.
* wghtml.module: _wghtml_get_object(): allow recreation of the static wghtml singleton in case we need to restart the page request.
* wghtml_node_module.php:
_wghtml_show(): call drupal_not_found() for missing html pages and record the REQUEST_URI for modules like search404 to work correctly.
_wghtml_show(): delete pages for which the corresponding nodes were deleted. restart page queries in this case to refetch pages present in the filesystem.
| Attachment | Size |
|---|---|
| wghtml-fix-noise-404-lock-type-del.diff | 4.92 KB |

#1
Anybody found anything wrong with this? If not I will commit.