use defines S_DRAFT_APP and S_RELEASE instead of numbers

This commit is contained in:
Uwe Steinmann 2013-09-27 08:24:09 +02:00
parent 0c1c829cca
commit 9a6772b59a
2 changed files with 3 additions and 3 deletions

View File

@ -231,7 +231,7 @@ if ($_POST["approvalStatus"]==-1){
// count of the approvals required for this document.
if ($approvalCT == $approvalTotal) {
// Change the status to released.
$newStatus=2;
$newStatus=S_RELEASED;
if($content->setStatus($newStatus, getMLText("automatic_status_update"), $user)) {
// Send notification to subscribers.
if($notifier) {

View File

@ -256,11 +256,11 @@ if ($_POST["reviewStatus"]==-1){
// If the approvals received is less than the approvals total, then
// change status to pending approval.
if ($approvalCT<$approvalTotal) {
$newStatus=1;
$newStatus=S_DRAFT_APP;
}
else {
// Otherwise, change the status to released.
$newStatus=2;
$newStatus=S_RELEASED;
}
if ($content->setStatus($newStatus, getMLText("automatic_status_update"), $user)) {
// Send notification to subscribers.