Index: branches/2.6.x/CHANGELOG
===================================================================
--- branches/2.6.x/CHANGELOG	(revision 501)
+++ branches/2.6.x/CHANGELOG	(revision 502)
@@ -12,6 +12,7 @@
 
 ------------------------------------- 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: branches/2.6.x/wb/framework/functions.php
===================================================================
--- branches/2.6.x/wb/framework/functions.php	(revision 501)
+++ branches/2.6.x/wb/framework/functions.php	(revision 502)
@@ -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();
