Confusion between sAction=view and sAction=display broke viewing/displaying items. Standardize on sAction=view until we can come up with a more robust way of ensuring the same issue doesn't happen again.

This commit is contained in:
Chris Morgan
2007-09-24 21:35:35 -04:00
parent fafcbce1bd
commit a6f76eb892
5 changed files with 7 additions and 7 deletions

View File

@@ -85,7 +85,7 @@ $sAction = $aClean['sAction'];
if(!$sAction)
{
if($oObject->iId)
$sAction = "display";
$sAction = "view";
}
apidb_header($oObject->get_title($sAction));
@@ -111,7 +111,7 @@ if($oObject->iId && $sAction != "add")
$oObject->delete_prompt();
break;
case "display":
case "view":
$oObject->view($_SERVER['REQUEST_URI'], $aClean);
break;
}