objectManager: Show a note when viewing queued/rejected entries

This commit is contained in:
Alexander Nicolaysen Sørnes
2009-06-28 14:51:08 +02:00
parent 9f52eca642
commit 3cf7a256f1

View File

@@ -1307,6 +1307,26 @@ class ObjectManager
if($oObject->objectGetState() == 'deleted')
$this->error_exit("This entry has been deleted (class: {$this->sClass}, id: {$this->iId})<br />Its content may have been moved to another entry");
/* Show a note if the entry is queued or rejected */
if($oObject->objectGetState() != 'accepted')
{
$sSentence = 'This entry ';
switch($oObject->objectGetState())
{
case 'queued':
case 'pending':
$sVerb = 'Queued';
$sSentence .= 'is currently queued';
break;
case 'rejected':
$sVerb = 'Rejected';
$sSentence .= 'has been rejected';
break;
}
$sSentence .= ', and may not be visible to all users.';
echo html_note("$sVerb Entry", $sSentence);
}
$aVars = $this->get_custom_vars($aClean, "view");
echo "<br />";