Index: trunk/CHANGELOG
===================================================================
--- trunk/CHANGELOG	(revision 500)
+++ trunk/CHANGELOG	(revision 501)
@@ -15,6 +15,7 @@
 !	Replaced some core files to allow configuration of wbmailer via admin settings panel
 ------------------------------------- 2.6.6 -------------------------------------
 01-Jul-2007 Ryan Djurovich
+#	Fixed bug where error message not displayed when script fails to create a page
 #	Fixed bugs introduced in [484]
 14-May-2007 Matthias Gallas
 +	Added support for ISO-8859-6.(Thanks to thorn)
Index: trunk/wb/framework/functions.php
===================================================================
--- trunk/wb/framework/functions.php	(revision 500)
+++ trunk/wb/framework/functions.php	(revision 501)
@@ -859,7 +859,7 @@
 
 // Create a new file in the pages directory
 function create_access_file($filename,$page_id,$level) {
-	global $admin;
+	global $admin, $MESSAGE;
 	if(!is_writable(WB_PATH.PAGES_DIRECTORY.'/')) {
 		$admin->print_error($MESSAGE['PAGES']['CANNOT_CREATE_ACCESS_FILE']);
 	} else {
@@ -1057,7 +1057,7 @@
 // Function to delete a page
 function delete_page($page_id) {
 	
-	global $admin, $database;
+	global $admin, $database, $MESSAGE;
 	
 	// Find out more about the page
 	$database = new database();
