Revision 502
Added by ryan over 17 years ago
functions.php | ||
---|---|---|
859 | 859 |
|
860 | 860 |
// Create a new file in the pages directory |
861 | 861 |
function create_access_file($filename,$page_id,$level) { |
862 |
global $admin; |
|
862 |
global $admin, $MESSAGE;
|
|
863 | 863 |
if(!is_writable(WB_PATH.PAGES_DIRECTORY.'/')) { |
864 | 864 |
$admin->print_error($MESSAGE['PAGES']['CANNOT_CREATE_ACCESS_FILE']); |
865 | 865 |
} else { |
... | ... | |
1057 | 1057 |
// Function to delete a page |
1058 | 1058 |
function delete_page($page_id) { |
1059 | 1059 |
|
1060 |
global $admin, $database; |
|
1060 |
global $admin, $database, $MESSAGE;
|
|
1061 | 1061 |
|
1062 | 1062 |
// Find out more about the page |
1063 | 1063 |
$database = new database(); |
Also available in: Unified diff
Added changeset [501] to 2.6.x branch