fix locks, deletion, publisching options and more

timj - October 5, 2007 - 11:53
Project:wgHTML
Version:5.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:djnz
Status:active
Description

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.

AttachmentSize
wghtml-fix-noise-404-lock-type-del.diff4.92 KB

#1

djnz - October 20, 2007 - 03:27
Assigned to:Anonymous» djnz

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

 
 

Drupal is a registered trademark of Dries Buytaert.