Project

General

Profile

« Previous | Next » 

Revision 436

Added by doc about 17 years ago

Fixed bug in changeset 428 (page files were not removed from the /pages folder when deleting files from the backend due to a typo in wb/framework/function.php).

View differences:

functions.php
667 667
	$directory = WB_PATH.PAGES_DIRECTORY.$link;
668 668
	$filename = $directory.'.php';
669 669
	$directory .= '/';
670
	if(file_exists($filename) && substr($file_name,0,1<>'.')) {
670
	if(file_exists($filename) && substr($filename,0,1<>'.')) {
671 671
		if(!is_writable(WB_PATH.PAGES_DIRECTORY.'/')) {
672 672
			$admin->print_error($MESSAGE['PAGES']['CANNOT_DELETE_ACCESS_FILE']);
673 673
		} else {

Also available in: Unified diff