Error

Revisions do not function on unpublished pages.

stop(); } // Make sure the user is a publisher. if ($bigtree["access_level"] != "p") { ?>

Error

You must be a publisher to manage revisions.

stop(); } // Check for a page lock if (!empty($_GET["force"])) { $admin->verifyCSRFToken(); $force = true; } else { $force = false; } $lock_id = $admin->lockCheck("bigtree_pages",$page["id"],"admin/modules/pages/_locked.php",$force); // See if there's a draft copy. $draft = $admin->getPageChanges($page["id"]); // Get the current published copy. We're going to just pull a few columns or I'd use getPage here. $current_author = $admin->getUser($page["last_edited_by"]); // Get all revisions $revisions = $admin->getPageRevisions($page["id"]); include BigTree::path("admin/modules/pages/_properties.php"); if ($draft) { $draft_author = $admin->getUser($draft["user"]); ?>

Current Draft

Last Edited Draft Author Publish Edit Delete